aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-10-29 14:14:47 -0500
committermat <github@matdoes.dev>2022-10-29 14:14:47 -0500
commit7c71bdf79a851d9646fe60f00dd70429aa09263b (patch)
treefc6875888cfd4958c8e9fe6f9e758eacbeace68a /azalea-protocol
parent65d8fdcb6c13e8802a79fa2df570a57978b3c430 (diff)
downloadazalea-drasl-7c71bdf79a851d9646fe60f00dd70429aa09263b.tar.xz
add doc comments to combat packets
Diffstat (limited to 'azalea-protocol')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_player_combat_end_packet.rs1
-rw-r--r--azalea-protocol/src/packets/game/clientbound_player_combat_enter_packet.rs1
-rw-r--r--azalea-protocol/src/packets/game/clientbound_player_combat_kill_packet.rs1
3 files changed, 3 insertions, 0 deletions
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]