From b27697819550e643057bd4190984c2a26f4465d8 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 21 Mar 2023 18:20:47 +0000 Subject: clear titles packet --- .../src/packets/game/clientbound_clear_titles_packet.rs | 7 +++++++ azalea-protocol/src/packets/game/mod.rs | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 azalea-protocol/src/packets/game/clientbound_clear_titles_packet.rs (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/packets/game/clientbound_clear_titles_packet.rs b/azalea-protocol/src/packets/game/clientbound_clear_titles_packet.rs new file mode 100644 index 00000000..3bdc0c79 --- /dev/null +++ b/azalea-protocol/src/packets/game/clientbound_clear_titles_packet.rs @@ -0,0 +1,7 @@ +use azalea_buf::McBuf; +use azalea_protocol_macros::ClientboundGamePacket; + +#[derive(Clone, Debug, McBuf, ClientboundGamePacket)] +pub struct ClientboundClearTitlesPacket { + pub reset_times: bool, +} diff --git a/azalea-protocol/src/packets/game/mod.rs b/azalea-protocol/src/packets/game/mod.rs index 1acd5364..0b7c0d52 100755 --- a/azalea-protocol/src/packets/game/mod.rs +++ b/azalea-protocol/src/packets/game/mod.rs @@ -12,6 +12,7 @@ pub mod clientbound_boss_event_packet; pub mod clientbound_bundle_packet; pub mod clientbound_change_difficulty_packet; pub mod clientbound_chunks_biomes_packet; +pub mod clientbound_clear_titles_packet; pub mod clientbound_command_suggestions_packet; pub mod clientbound_commands_packet; pub mod clientbound_container_close_packet; @@ -232,6 +233,7 @@ declare_state_packets!( 0x0b: clientbound_boss_event_packet::ClientboundBossEventPacket, 0x0c: clientbound_change_difficulty_packet::ClientboundChangeDifficultyPacket, 0x0d: clientbound_chunks_biomes_packet::ClientboundChunksBiomesPacket, + 0x0e: clientbound_clear_titles_packet::ClientboundClearTitlesPacket, 0x0f: clientbound_command_suggestions_packet::ClientboundCommandSuggestionsPacket, 0x10: clientbound_commands_packet::ClientboundCommandsPacket, 0x11: clientbound_container_close_packet::ClientboundContainerClosePacket, -- cgit v1.2.3