aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/clientbound_block_update_packet.rs
blob: dedcc5db82ee410ab6884f10252f5d4aaa23b285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use azalea_buf::McBuf;
use azalea_core::BlockPos;
use packet_macros::ClientboundGamePacket;

#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
pub struct ClientboundBlockUpdatePacket {
    pub pos: BlockPos,
    // TODO: in vanilla this is a BlockState, but here we just have it as a number.
    // perhaps we could make a crate that only handles block states? right now blockstates are handled in azalea-block
    #[var]
    pub block_state: u32,
}