1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

clear titles packet

This commit is contained in:
mat 2023-03-21 18:20:47 +00:00
parent 157ac22461
commit b276978195
3 changed files with 10 additions and 0 deletions

View file

@ -927,6 +927,7 @@ fn process_packet_events(ecs: &mut World) {
ClientboundGamePacket::SetSubtitleText(_) => {}
ClientboundGamePacket::SetTitleText(_) => {}
ClientboundGamePacket::SetTitlesAnimation(_) => {}
ClientboundGamePacket::ClearTitles(_) => {}
ClientboundGamePacket::SoundEntity(_) => {}
ClientboundGamePacket::StopSound(_) => {}
ClientboundGamePacket::TabList(_) => {}

View file

@ -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,
}

View file

@ -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,