aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_set_time.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2026-03-24 11:15:56 -0500
committerGitHub <noreply@github.com>2026-03-24 11:15:56 -0500
commiteeaf1435e81d9cbd8daa0efa22029c1f259a64b5 (patch)
tree3486e26d5409708370e4e259d240fb77c6e1e439 /azalea-protocol/src/packets/game/c_set_time.rs
parent41a9ae6aaff77646c08c64ac1334a8cc6081c24f (diff)
downloadazalea-drasl-eeaf1435e81d9cbd8daa0efa22029c1f259a64b5.tar.xz
26.1 (#316)
* start updating to 26.1 * start updating to 26.1-snapshot-6 * 26.1-snapshot-6 * 26.1-snapshot-10 * 26.1-rc-1 * fix tests * 26.1-rc-2 and sort default components * 26.1 * update changelog
Diffstat (limited to 'azalea-protocol/src/packets/game/c_set_time.rs')
-rw-r--r--azalea-protocol/src/packets/game/c_set_time.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/c_set_time.rs b/azalea-protocol/src/packets/game/c_set_time.rs
index ff795e87..efc95e0d 100644
--- a/azalea-protocol/src/packets/game/c_set_time.rs
+++ b/azalea-protocol/src/packets/game/c_set_time.rs
@@ -1,9 +1,18 @@
use azalea_buf::AzBuf;
use azalea_protocol_macros::ClientboundGamePacket;
+use azalea_registry::data::WorldClock;
+use indexmap::IndexMap;
#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundSetTime {
pub game_time: u64,
- pub day_time: u64,
- pub tick_day_time: bool,
+ pub clock_updates: IndexMap<WorldClock, ClockState>,
+}
+
+#[derive(AzBuf, Clone, Debug, PartialEq)]
+pub struct ClockState {
+ #[var]
+ pub total_ticks: u64,
+ pub partial_tick: f32,
+ pub rate: f32,
}