From 7c71bdf79a851d9646fe60f00dd70429aa09263b Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 29 Oct 2022 14:14:47 -0500 Subject: [PATCH] add doc comments to combat packets --- .../src/packets/game/clientbound_player_combat_end_packet.rs | 1 + .../src/packets/game/clientbound_player_combat_enter_packet.rs | 1 + .../src/packets/game/clientbound_player_combat_kill_packet.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/azalea-protocol/src/packets/game/clientbound_player_combat_end_packet.rs b/azalea-protocol/src/packets/game/clientbound_player_combat_end_packet.rs index 0276d379..67d29e93 100644 --- a/azalea-protocol/src/packets/game/clientbound_player_combat_end_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_player_combat_end_packet.rs @@ -1,6 +1,7 @@ use azalea_buf::McBuf; use azalea_protocol_macros::ClientboundGamePacket; +/// Unused in vanilla. #[derive(Clone, Debug, McBuf, ClientboundGamePacket)] pub struct ClientboundPlayerCombatEndPacket { #[var] diff --git a/azalea-protocol/src/packets/game/clientbound_player_combat_enter_packet.rs b/azalea-protocol/src/packets/game/clientbound_player_combat_enter_packet.rs index 8e7ef8a2..42ee1838 100644 --- a/azalea-protocol/src/packets/game/clientbound_player_combat_enter_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_player_combat_enter_packet.rs @@ -1,5 +1,6 @@ use azalea_buf::McBuf; use azalea_protocol_macros::ClientboundGamePacket; +/// Unused in vanilla. #[derive(Clone, Debug, McBuf, ClientboundGamePacket)] pub struct ClientboundPlayerCombatEnterPacket {} diff --git a/azalea-protocol/src/packets/game/clientbound_player_combat_kill_packet.rs b/azalea-protocol/src/packets/game/clientbound_player_combat_kill_packet.rs index 0492d16a..f1294f2e 100644 --- a/azalea-protocol/src/packets/game/clientbound_player_combat_kill_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_player_combat_kill_packet.rs @@ -2,6 +2,7 @@ use azalea_buf::McBuf; use azalea_chat::component::Component; use azalea_protocol_macros::ClientboundGamePacket; +/// Used to send a respawn screen. #[derive(Clone, Debug, McBuf, ClientboundGamePacket)] pub struct ClientboundPlayerCombatKillPacket { #[var]