diff options
| author | mat <github@matdoes.dev> | 2022-05-07 22:03:49 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-07 22:03:49 -0500 |
| commit | a60c1ac05bf8f7e815d550d0a0ea1b091d9ea865 (patch) | |
| tree | 62d47e33aed0a37f5f30288a754eec09d6a1df79 /azalea-protocol/src/packets/game/clientbound_block_update_packet.rs | |
| parent | ff79c1838add53ecf10e9e2783cdcaba122f1650 (diff) | |
| download | azalea-drasl-a60c1ac05bf8f7e815d550d0a0ea1b091d9ea865.tar.xz | |
block update packet
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_block_update_packet.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_block_update_packet.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_block_update_packet.rs b/azalea-protocol/src/packets/game/clientbound_block_update_packet.rs new file mode 100644 index 00000000..575b7f46 --- /dev/null +++ b/azalea-protocol/src/packets/game/clientbound_block_update_packet.rs @@ -0,0 +1,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, +} |
