diff options
| author | mat <github@matdoes.dev> | 2023-03-21 18:20:47 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2023-03-21 18:20:47 +0000 |
| commit | b27697819550e643057bd4190984c2a26f4465d8 (patch) | |
| tree | c1ccf8831c8cc8a5cb06319d22309d4697d73abd /azalea-protocol/src | |
| parent | 157ac224616f8543c3fc050af99863527b5f1873 (diff) | |
| download | azalea-drasl-b27697819550e643057bd4190984c2a26f4465d8.tar.xz | |
clear titles packet
Diffstat (limited to 'azalea-protocol/src')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_clear_titles_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_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, |
