azalea_protocol/packets/game/c_block_destruction.rs
1use azalea_buf::AzBuf;
2use azalea_core::position::BlockPos;
3use azalea_protocol_macros::ClientboundGamePacket;
4use azalea_world::MinecraftEntityId;
5
6#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
7pub struct ClientboundBlockDestruction {
8 /// The ID of the entity breaking the block.
9 #[var]
10 pub id: MinecraftEntityId,
11 pub pos: BlockPos,
12 /// 0–9 to set it, any other value to remove it.
13 pub progress: u8,
14}