BossEventPacket¶
文档版本:r/21_u4
协议版本:748
BossEventPacket数据包,数字ID是74
。该数据包用于protocol.packet.bosseventpacket.description
结构¶
字段¶
- Target Actor ID:ActorUniqueID
- 特殊类型。protocol.packet.bosseventpacket.target_actor_id.description
- Event Type:unsigned varint
- 基本类型枚举。protocol.packet.bosseventpacket.event_type.description枚举值如下:
-
键 值 描述 Add
0
protocol.enum.add PlayerAdded
1
protocol.enum.playeradded Remove
2
protocol.enum.remove PlayerRemoved
3
protocol.enum.playerremoved Update_Percent
4
protocol.enum.update_percent Update_Name
5
protocol.enum.update_name Update_Properties
6
protocol.enum.update_properties Update_Style
7
protocol.enum.update_style Query
8
protocol.enum.query
依赖于
Event Type
- Name:string
- 特殊类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_0.name.descriptionName of the boss to add
- Health Percent:float
- 基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_0.health_percent.descriptionHealth value of the boss
- Darken Screen:unsigned short
- 基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_0.darken_screen.descriptionA boolean value for whether or not we should darken the screen (has a 0 or 1 value)
- Color:unsigned varint
- 基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_0.color.descriptioncolor for the boss bar, listed in an enumeration
- Overlay:unsigned varint
- 基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_0.overlay.descriptionoverlay for the boss bar, listed in an enumeration
- Player ID:ActorUniqueID
- 特殊类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_1.player_id.description
- if (2):[No Data]
- 无数据
- Player ID:ActorUniqueID
- 特殊类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_3.player_id.description
- Health Percent:float
- 基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_4.health_percent.description
- Name:string
- 特殊类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_5.name.description
- Darken Screen:unsigned short
- 基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_6.darken_screen.description
- Color:unsigned varint
- 基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_6.color.description
- Overlay:unsigned varint
- 基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_6.overlay.description
- Color:unsigned varint
- 基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_7.color.description
- Overlay:unsigned varint
- 基本类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_7.overlay.description
- Player ID:ActorUniqueID
- 特殊类型。protocol.packet.bosseventpacket.dependency_on_event_type.if_8.player_id.description