mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
add doc comments to combat packets
This commit is contained in:
parent
65d8fdcb6c
commit
7c71bdf79a
3 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
use azalea_buf::McBuf;
|
use azalea_buf::McBuf;
|
||||||
use azalea_protocol_macros::ClientboundGamePacket;
|
use azalea_protocol_macros::ClientboundGamePacket;
|
||||||
|
|
||||||
|
/// Unused in vanilla.
|
||||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||||
pub struct ClientboundPlayerCombatEndPacket {
|
pub struct ClientboundPlayerCombatEndPacket {
|
||||||
#[var]
|
#[var]
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
use azalea_buf::McBuf;
|
use azalea_buf::McBuf;
|
||||||
use azalea_protocol_macros::ClientboundGamePacket;
|
use azalea_protocol_macros::ClientboundGamePacket;
|
||||||
|
|
||||||
|
/// Unused in vanilla.
|
||||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||||
pub struct ClientboundPlayerCombatEnterPacket {}
|
pub struct ClientboundPlayerCombatEnterPacket {}
|
||||||
|
|
|
@ -2,6 +2,7 @@ use azalea_buf::McBuf;
|
||||||
use azalea_chat::component::Component;
|
use azalea_chat::component::Component;
|
||||||
use azalea_protocol_macros::ClientboundGamePacket;
|
use azalea_protocol_macros::ClientboundGamePacket;
|
||||||
|
|
||||||
|
/// Used to send a respawn screen.
|
||||||
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||||
pub struct ClientboundPlayerCombatKillPacket {
|
pub struct ClientboundPlayerCombatKillPacket {
|
||||||
#[var]
|
#[var]
|
||||||
|
|
Loading…
Add table
Reference in a new issue