Add EntityProperties_VarIntVarInt variant, using VarInts in both fields https://wiki.vg/index.php?title=Protocol&oldid=16918#Entity_Properties
This commit is contained in:
parent
0fdec6905c
commit
ba264e13c7
|
@ -2155,7 +2155,11 @@ state_packets!(
|
|||
*/
|
||||
}
|
||||
/// EntityProperties updates the properties for an entity.
|
||||
packet EntityProperties {
|
||||
packet EntityProperties_VarIntVarInt {
|
||||
field entity_id: VarInt =,
|
||||
field properties: LenPrefixed<VarInt, packet::EntityProperty> =,
|
||||
}
|
||||
packet EntityProperties_VarInt {
|
||||
field entity_id: VarInt =,
|
||||
field properties: LenPrefixed<i32, packet::EntityProperty> =,
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ protocol_packet_ids!(
|
|||
0x46 => PlayerListHeaderFooter
|
||||
0x47 => CollectItem_nocount
|
||||
0x48 => EntityTeleport_i32
|
||||
0x49 => EntityProperties
|
||||
0x49 => EntityProperties_VarInt
|
||||
0x4a => EntityEffect
|
||||
}
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ protocol_packet_ids!(
|
|||
0x51 => CollectItem
|
||||
0x52 => EntityTeleport_f64
|
||||
0x53 => Advancements
|
||||
0x54 => EntityProperties
|
||||
0x54 => EntityProperties_VarInt
|
||||
0x55 => EntityEffect
|
||||
0x56 => DeclareRecipes
|
||||
0x57 => TagsWithEntities
|
||||
|
|
|
@ -136,7 +136,7 @@ protocol_packet_ids!(
|
|||
0x51 => CollectItem
|
||||
0x52 => EntityTeleport_f64
|
||||
0x53 => Advancements
|
||||
0x54 => EntityProperties
|
||||
0x54 => EntityProperties_VarInt
|
||||
0x55 => EntityEffect
|
||||
0x56 => DeclareRecipes
|
||||
0x57 => TagsWithEntities
|
||||
|
|
|
@ -114,7 +114,7 @@ protocol_packet_ids!(
|
|||
0x47 => PlayerListHeaderFooter
|
||||
0x48 => CollectItem_nocount
|
||||
0x49 => EntityTeleport_f64
|
||||
0x4a => EntityProperties
|
||||
0x4a => EntityProperties_VarInt
|
||||
0x4b => EntityEffect
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@ protocol_packet_ids!(
|
|||
0x47 => PlayerListHeaderFooter
|
||||
0x48 => CollectItem
|
||||
0x49 => EntityTeleport_f64
|
||||
0x4a => EntityProperties
|
||||
0x4a => EntityProperties_VarInt
|
||||
0x4b => EntityEffect
|
||||
}
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ protocol_packet_ids!(
|
|||
0x4b => CollectItem
|
||||
0x4c => EntityTeleport_f64
|
||||
0x4d => Advancements
|
||||
0x4e => EntityProperties
|
||||
0x4e => EntityProperties_VarInt
|
||||
0x4f => EntityEffect
|
||||
}
|
||||
}
|
||||
|
|
|
@ -134,7 +134,7 @@ protocol_packet_ids!(
|
|||
0x4f => CollectItem
|
||||
0x50 => EntityTeleport_f64
|
||||
0x51 => Advancements
|
||||
0x52 => EntityProperties
|
||||
0x52 => EntityProperties_VarInt
|
||||
0x53 => EntityEffect
|
||||
0x54 => DeclareRecipes
|
||||
0x55 => Tags
|
||||
|
|
|
@ -144,7 +144,7 @@ protocol_packet_ids!(
|
|||
0x55 => CollectItem
|
||||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => TagsWithEntities
|
||||
|
|
|
@ -144,7 +144,7 @@ protocol_packet_ids!(
|
|||
0x55 => CollectItem
|
||||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => TagsWithEntities
|
||||
|
|
|
@ -144,7 +144,7 @@ protocol_packet_ids!(
|
|||
0x55 => CollectItem
|
||||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => TagsWithEntities
|
||||
|
|
|
@ -144,7 +144,7 @@ protocol_packet_ids!(
|
|||
0x55 => CollectItem
|
||||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => TagsWithEntities
|
||||
|
|
|
@ -144,7 +144,7 @@ protocol_packet_ids!(
|
|||
0x55 => CollectItem
|
||||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => TagsWithEntities
|
||||
|
|
|
@ -145,7 +145,7 @@ protocol_packet_ids!(
|
|||
0x56 => CollectItem
|
||||
0x57 => EntityTeleport_f64
|
||||
0x58 => Advancements
|
||||
0x59 => EntityProperties
|
||||
0x59 => EntityProperties_VarInt
|
||||
0x5a => EntityEffect
|
||||
0x5b => DeclareRecipes
|
||||
0x5c => TagsWithEntities
|
||||
|
|
|
@ -145,7 +145,7 @@ protocol_packet_ids!(
|
|||
0x55 => CollectItem
|
||||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => TagsWithEntities
|
||||
|
|
|
@ -146,7 +146,7 @@ protocol_packet_ids!(
|
|||
0x55 => CollectItem
|
||||
0x56 => EntityTeleport_f64
|
||||
0x57 => Advancements
|
||||
0x58 => EntityProperties
|
||||
0x58 => EntityProperties_VarInt
|
||||
0x59 => EntityEffect
|
||||
0x5a => DeclareRecipes
|
||||
0x5b => TagsWithEntities
|
||||
|
|
|
@ -157,7 +157,7 @@ protocol_packet_ids!(
|
|||
0x60 => CollectItem
|
||||
0x61 => EntityTeleport_f64
|
||||
0x62 => Advancements
|
||||
0x63 => EntityProperties
|
||||
0x63 => EntityProperties_VarIntVarInt
|
||||
0x64 => EntityEffect
|
||||
0x65 => DeclareRecipes
|
||||
0x66 => TagsNested
|
||||
|
|
|
@ -68,7 +68,7 @@ protocol_packet_ids!(
|
|||
0x1d => EntityEffect
|
||||
0x1e => EntityRemoveEffect
|
||||
0x1f => SetExperience
|
||||
0x20 => EntityProperties
|
||||
0x20 => EntityProperties_VarInt
|
||||
0x21 => ChunkData_NoEntities_u16
|
||||
0x22 => MultiBlockChange_VarInt
|
||||
0x23 => BlockChange_VarInt
|
||||
|
|
|
@ -115,7 +115,7 @@ protocol_packet_ids!(
|
|||
0x48 => PlayerListHeaderFooter
|
||||
0x49 => CollectItem_nocount
|
||||
0x4a => EntityTeleport_f64
|
||||
0x4b => EntityProperties
|
||||
0x4b => EntityProperties_VarInt
|
||||
0x4c => EntityEffect
|
||||
}
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ protocol_packet_ids!(
|
|||
0x48 => PlayerListHeaderFooter
|
||||
0x49 => CollectItem_nocount
|
||||
0x4a => EntityTeleport_f64
|
||||
0x4b => EntityProperties
|
||||
0x4b => EntityProperties_VarInt
|
||||
0x4c => EntityEffect
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue