Split EntityEquipment
This commit is contained in:
parent
0f69de9085
commit
62eadc4ff5
|
@ -1668,7 +1668,12 @@ state_packets!(
|
|||
/// EntityEquipment is sent to display an item on an entity, like a sword
|
||||
/// or armor. Slot 0 is the held item and slots 1 to 4 are boots, leggings
|
||||
/// chestplate and helmet respectively.
|
||||
packet EntityEquipment {
|
||||
packet EntityEquipment_Slotless {
|
||||
field entity_id: VarInt =,
|
||||
field slot: VarInt =,
|
||||
field item: Option<item::Stack> =,
|
||||
}
|
||||
packet EntityEquipment_VarInt {
|
||||
field entity_id: VarInt =,
|
||||
field slot: VarInt =,
|
||||
field item: Option<item::Stack> =,
|
||||
|
|
|
@ -97,7 +97,7 @@ protocol_packet_ids!(
|
|||
0x39 => EntityMetadata
|
||||
0x3a => EntityAttach_leashed
|
||||
0x3b => EntityVelocity
|
||||
0x3c => EntityEquipment
|
||||
0x3c => EntityEquipment_VarInt
|
||||
0x3d => SetExperience
|
||||
0x3e => UpdateHealth
|
||||
0x3f => ScoreboardObjective
|
||||
|
|
|
@ -120,7 +120,7 @@ protocol_packet_ids!(
|
|||
0x40 => EntityMetadata
|
||||
0x41 => EntityAttach
|
||||
0x42 => EntityVelocity
|
||||
0x43 => EntityEquipment
|
||||
0x43 => EntityEquipment_VarInt
|
||||
0x44 => SetExperience
|
||||
0x45 => UpdateHealth
|
||||
0x46 => ScoreboardObjective
|
||||
|
|
|
@ -120,7 +120,7 @@ protocol_packet_ids!(
|
|||
0x40 => EntityMetadata
|
||||
0x41 => EntityAttach
|
||||
0x42 => EntityVelocity
|
||||
0x43 => EntityEquipment
|
||||
0x43 => EntityEquipment_VarInt
|
||||
0x44 => SetExperience
|
||||
0x45 => UpdateHealth
|
||||
0x46 => ScoreboardObjective
|
||||
|
|
|
@ -100,7 +100,7 @@ protocol_packet_ids!(
|
|||
0x39 => EntityMetadata
|
||||
0x3a => EntityAttach
|
||||
0x3b => EntityVelocity
|
||||
0x3c => EntityEquipment
|
||||
0x3c => EntityEquipment_VarInt
|
||||
0x3d => SetExperience
|
||||
0x3e => UpdateHealth
|
||||
0x3f => ScoreboardObjective
|
||||
|
|
|
@ -100,7 +100,7 @@ protocol_packet_ids!(
|
|||
0x39 => EntityMetadata
|
||||
0x3a => EntityAttach
|
||||
0x3b => EntityVelocity
|
||||
0x3c => EntityEquipment
|
||||
0x3c => EntityEquipment_VarInt
|
||||
0x3d => SetExperience
|
||||
0x3e => UpdateHealth
|
||||
0x3f => ScoreboardObjective
|
||||
|
|
|
@ -106,7 +106,7 @@ protocol_packet_ids!(
|
|||
0x3c => EntityMetadata
|
||||
0x3d => EntityAttach
|
||||
0x3e => EntityVelocity
|
||||
0x3f => EntityEquipment
|
||||
0x3f => EntityEquipment_VarInt
|
||||
0x40 => SetExperience
|
||||
0x41 => UpdateHealth
|
||||
0x42 => ScoreboardObjective
|
||||
|
|
|
@ -119,7 +119,7 @@ protocol_packet_ids!(
|
|||
0x3f => EntityMetadata
|
||||
0x40 => EntityAttach
|
||||
0x41 => EntityVelocity
|
||||
0x42 => EntityEquipment
|
||||
0x42 => EntityEquipment_VarInt
|
||||
0x43 => SetExperience
|
||||
0x44 => UpdateHealth
|
||||
0x45 => ScoreboardObjective
|
||||
|
|
|
@ -126,7 +126,7 @@ protocol_packet_ids!(
|
|||
0x43 => EntityMetadata
|
||||
0x44 => EntityAttach
|
||||
0x45 => EntityVelocity
|
||||
0x46 => EntityEquipment
|
||||
0x46 => EntityEquipment_VarInt
|
||||
0x47 => SetExperience
|
||||
0x48 => UpdateHealth
|
||||
0x49 => ScoreboardObjective
|
||||
|
|
|
@ -126,7 +126,7 @@ protocol_packet_ids!(
|
|||
0x43 => EntityMetadata
|
||||
0x44 => EntityAttach
|
||||
0x45 => EntityVelocity
|
||||
0x46 => EntityEquipment
|
||||
0x46 => EntityEquipment_VarInt
|
||||
0x47 => SetExperience
|
||||
0x48 => UpdateHealth
|
||||
0x49 => ScoreboardObjective
|
||||
|
|
|
@ -126,7 +126,7 @@ protocol_packet_ids!(
|
|||
0x43 => EntityMetadata
|
||||
0x44 => EntityAttach
|
||||
0x45 => EntityVelocity
|
||||
0x46 => EntityEquipment
|
||||
0x46 => EntityEquipment_VarInt
|
||||
0x47 => SetExperience
|
||||
0x48 => UpdateHealth
|
||||
0x49 => ScoreboardObjective
|
||||
|
|
|
@ -126,7 +126,7 @@ protocol_packet_ids!(
|
|||
0x43 => EntityMetadata
|
||||
0x44 => EntityAttach
|
||||
0x45 => EntityVelocity
|
||||
0x46 => EntityEquipment
|
||||
0x46 => EntityEquipment_VarInt
|
||||
0x47 => SetExperience
|
||||
0x48 => UpdateHealth
|
||||
0x49 => ScoreboardObjective
|
||||
|
|
|
@ -126,7 +126,7 @@ protocol_packet_ids!(
|
|||
0x43 => EntityMetadata
|
||||
0x44 => EntityAttach
|
||||
0x45 => EntityVelocity
|
||||
0x46 => EntityEquipment
|
||||
0x46 => EntityEquipment_VarInt
|
||||
0x47 => SetExperience
|
||||
0x48 => UpdateHealth
|
||||
0x49 => ScoreboardObjective
|
||||
|
|
|
@ -127,7 +127,7 @@ protocol_packet_ids!(
|
|||
0x44 => EntityMetadata
|
||||
0x45 => EntityAttach
|
||||
0x46 => EntityVelocity
|
||||
0x47 => EntityEquipment
|
||||
0x47 => EntityEquipment_VarInt
|
||||
0x48 => SetExperience
|
||||
0x49 => UpdateHealth
|
||||
0x4a => ScoreboardObjective
|
||||
|
|
|
@ -128,7 +128,7 @@ protocol_packet_ids!(
|
|||
0x44 => EntityMetadata
|
||||
0x45 => EntityAttach
|
||||
0x46 => EntityVelocity
|
||||
0x47 => EntityEquipment // TODO
|
||||
0x47 => EntityEquipment_VarInt // TODO: changed to an array, but earlier than 1.16.1
|
||||
0x48 => SetExperience
|
||||
0x49 => UpdateHealth
|
||||
0x4a => ScoreboardObjective
|
||||
|
|
|
@ -100,7 +100,7 @@ protocol_packet_ids!(
|
|||
0x39 => EntityMetadata
|
||||
0x3a => EntityAttach
|
||||
0x3b => EntityVelocity
|
||||
0x3c => EntityEquipment
|
||||
0x3c => EntityEquipment_VarInt
|
||||
0x3d => SetExperience
|
||||
0x3e => UpdateHealth
|
||||
0x3f => ScoreboardObjective
|
||||
|
|
|
@ -100,7 +100,7 @@ protocol_packet_ids!(
|
|||
0x39 => EntityMetadata
|
||||
0x3a => EntityAttach
|
||||
0x3b => EntityVelocity
|
||||
0x3c => EntityEquipment
|
||||
0x3c => EntityEquipment_VarInt
|
||||
0x3d => SetExperience
|
||||
0x3e => UpdateHealth
|
||||
0x3f => ScoreboardObjective
|
||||
|
|
Loading…
Reference in New Issue