Skip to main content

azalea_protocol/packets/game/
c_swing_animation.rs

1use azalea_buf::AzBuf;
2use azalea_core::entity_id::MinecraftEntityId;
3use azalea_protocol_macros::ClientboundGamePacket;
4use azalea_registry::item::components::SwingAnimation;
5
6use crate::packets::game::s_interact::InteractionHand;
7
8#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundGamePacket)]
9pub struct ClientboundSwingAnimation {
10    #[var]
11    pub entity_id: MinecraftEntityId,
12    pub hand: InteractionHand,
13    pub animation: SwingAnimation,
14}