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

#[derive(Clone, Debug, GamePacket)]
pub struct ClientboundBlockUpdatePacket {
    pub pos: BlockPos,
    // TODO: in vanilla this is a BlockState, but here we just have it as a number.
    // however, we can't add azalea-world as a dependency because it depends on us.
    // we could have a crate that contains encoding/decoding and the definitions?
    #[var]
    pub block_state: u32,
}