blob: f068cc7d4ed2b1d5b11cb2f99c90d7bfb905fba2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use azalea_core::BlockPos;
use packet_macros::{GamePacket, McBuf};
#[derive(Clone, Debug, McBuf, 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,
}
|