aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-07 12:22:57 -0500
committermat <github@matdoes.dev>2022-05-07 12:22:57 -0500
commitf0a277788c30392b630d4a8e8b09e9cd3e54c14f (patch)
tree7689dc322b5919be8cb1aa3e898ea2049ce67f4a /azalea-protocol/src
parentb9c31efc0161457771861e6858a4a4da0b6a2727 (diff)
downloadazalea-drasl-f0a277788c30392b630d4a8e8b09e9cd3e54c14f.tar.xz
add set time packet and update readme
Diffstat (limited to 'azalea-protocol/src')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_set_time_packet.rs7
-rwxr-xr-xazalea-protocol/src/packets/game/mod.rs2
2 files changed, 9 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_set_time_packet.rs b/azalea-protocol/src/packets/game/clientbound_set_time_packet.rs
new file mode 100644
index 00000000..02bf88d7
--- /dev/null
+++ b/azalea-protocol/src/packets/game/clientbound_set_time_packet.rs
@@ -0,0 +1,7 @@
+use packet_macros::GamePacket;
+
+#[derive(Clone, Debug, GamePacket)]
+pub struct ClientboundSetTimePacket {
+ pub game_time: u64,
+ pub day_time: u64,
+}
diff --git a/azalea-protocol/src/packets/game/mod.rs b/azalea-protocol/src/packets/game/mod.rs
index 852a9525..0b717add 100755
--- a/azalea-protocol/src/packets/game/mod.rs
+++ b/azalea-protocol/src/packets/game/mod.rs
@@ -19,6 +19,7 @@ pub mod clientbound_set_carried_item_packet;
pub mod clientbound_set_chunk_cache_center;
pub mod clientbound_set_entity_data_packet;
pub mod clientbound_set_entity_link_packet;
+pub mod clientbound_set_time_packet;
pub mod clientbound_update_attributes_packet;
pub mod clientbound_update_recipes_packet;
pub mod clientbound_update_tags_packet;
@@ -55,6 +56,7 @@ declare_state_packets!(
0x4d: clientbound_set_entity_data_packet::ClientboundSetEntityDataPacket,
0x45: clientbound_set_entity_link_packet::ClientboundSetEntityLinkPacket,
0x4f: clientbound_entity_velocity_packet::ClientboundEntityVelocityPacket,
+ 0x59: clientbound_set_time_packet::ClientboundSetTimePacket,
0x64: clientbound_update_attributes_packet::ClientboundUpdateAttributesPacket,
0x66: clientbound_update_recipes_packet::ClientboundUpdateRecipesPacket,
0x67: clientbound_update_tags_packet::ClientboundUpdateTagsPacket