diff options
| author | mat <github@matdoes.dev> | 2022-05-07 21:44:11 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-07 21:44:11 -0500 |
| commit | f62a681474df698d87deb43c71238b83a26f0f1f (patch) | |
| tree | 68b26f053faf818cf6780688f41d7840cdcc7494 /azalea-protocol/src/packets | |
| parent | 98eee6d908a5651c55131b80dc3c153a6708052e (diff) | |
| download | azalea-drasl-f62a681474df698d87deb43c71238b83a26f0f1f.tar.xz | |
remove entities packet
Diffstat (limited to 'azalea-protocol/src/packets')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_remove_entities_packet.rs | 7 | ||||
| -rwxr-xr-x | azalea-protocol/src/packets/game/mod.rs | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_remove_entities_packet.rs b/azalea-protocol/src/packets/game/clientbound_remove_entities_packet.rs new file mode 100644 index 00000000..265d0c64 --- /dev/null +++ b/azalea-protocol/src/packets/game/clientbound_remove_entities_packet.rs @@ -0,0 +1,7 @@ +use packet_macros::GamePacket; + +#[derive(Clone, Debug, GamePacket)] +pub struct ClientboundRemoveEntitiesPacket { + #[var] + pub entity_ids: Vec<u32>, +} diff --git a/azalea-protocol/src/packets/game/mod.rs b/azalea-protocol/src/packets/game/mod.rs index 9f1bce0d..dd3a7527 100755 --- a/azalea-protocol/src/packets/game/mod.rs +++ b/azalea-protocol/src/packets/game/mod.rs @@ -20,6 +20,7 @@ pub mod clientbound_player_abilities_packet; pub mod clientbound_player_info_packet; pub mod clientbound_player_position_packet; pub mod clientbound_recipe_packet; +pub mod clientbound_remove_entities_packet; pub mod clientbound_rotate_head_packet; pub mod clientbound_set_carried_item_packet; pub mod clientbound_set_chunk_cache_center; @@ -68,6 +69,7 @@ declare_state_packets!( 0x36: clientbound_player_info_packet::ClientboundPlayerInfoPacket, 0x38: clientbound_player_position_packet::ClientboundPlayerPositionPacket, 0x39: clientbound_recipe_packet::ClientboundRecipePacket, + 0x3a: clientbound_remove_entities_packet::ClientboundRemoveEntitiesPacket, 0x3e: clientbound_rotate_head_packet::ClientboundRotateHeadPacket, 0x48: clientbound_set_carried_item_packet::ClientboundSetCarriedItemPacket, 0x49: clientbound_set_chunk_cache_center::ClientboundSetChunkCacheCenterPacket, |
