aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-27 23:43:10 -0500
committermat <github@matdoes.dev>2022-04-27 23:43:10 -0500
commitc2a9acc7561927d4c76c8de29915935af95048fd (patch)
tree744ffa7d19441bfcbe61d7d87ec16272ea3eb17e /azalea-protocol/src
parent1b5a3722ee4cf0464fbb20e65debc7bbd7963b79 (diff)
downloadazalea-drasl-c2a9acc7561927d4c76c8de29915935af95048fd.tar.xz
add ClientboundSetChunkCacheCenterPacket
Diffstat (limited to 'azalea-protocol/src')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_set_chunk_cache_center.rs9
-rwxr-xr-xazalea-protocol/src/packets/game/mod.rs2
2 files changed, 11 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_set_chunk_cache_center.rs b/azalea-protocol/src/packets/game/clientbound_set_chunk_cache_center.rs
new file mode 100644
index 00000000..482dc0c7
--- /dev/null
+++ b/azalea-protocol/src/packets/game/clientbound_set_chunk_cache_center.rs
@@ -0,0 +1,9 @@
+use packet_macros::GamePacket;
+
+#[derive(Clone, Debug, GamePacket)]
+pub struct ClientboundSetChunkCacheCenterPacket {
+ #[varint]
+ pub x: i32,
+ #[varint]
+ pub y: i32,
+}
diff --git a/azalea-protocol/src/packets/game/mod.rs b/azalea-protocol/src/packets/game/mod.rs
index 0a9f1621..db799dba 100755
--- a/azalea-protocol/src/packets/game/mod.rs
+++ b/azalea-protocol/src/packets/game/mod.rs
@@ -9,6 +9,7 @@ pub mod clientbound_player_info_packet;
pub mod clientbound_player_position_packet;
pub mod clientbound_recipe_packet;
pub mod clientbound_set_carried_item_packet;
+pub mod clientbound_set_chunk_cache_center;
pub mod clientbound_update_recipes_packet;
pub mod clientbound_update_tags_packet;
pub mod clientbound_update_view_distance_packet;
@@ -30,6 +31,7 @@ declare_state_packets!(
0x38: clientbound_player_position_packet::ClientboundPlayerPositionPacket,
0x39: clientbound_recipe_packet::ClientboundRecipePacket,
0x48: clientbound_set_carried_item_packet::ClientboundSetCarriedItemPacket,
+ 0x49: clientbound_set_chunk_cache_center::ClientboundSetChunkCacheCenterPacket,
0x4a: clientbound_update_view_distance_packet::ClientboundUpdateViewDistancePacket,
0x66: clientbound_update_recipes_packet::ClientboundUpdateRecipesPacket,
0x67: clientbound_update_tags_packet::ClientboundUpdateTagsPacket