aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_block_destruction.rs
blob: 35503b75428639d23efaa06b78bf6243ec082bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use azalea_buf::AzBuf;
use azalea_core::position::BlockPos;
use azalea_protocol_macros::ClientboundGamePacket;
use azalea_core::entity_id::MinecraftEntityId;

#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundBlockDestruction {
    /// The ID of the entity breaking the block.
    #[var]
    pub id: MinecraftEntityId,
    pub pos: BlockPos,
    /// 0–9 to set it, any other value to remove it.
    pub progress: u8,
}