Skip to main content

azalea_protocol/packets/game/
c_set_time.rs

1use azalea_buf::AzBuf;
2use azalea_protocol_macros::ClientboundGamePacket;
3use azalea_registry::data::WorldClock;
4use indexmap::IndexMap;
5
6#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
7pub struct ClientboundSetTime {
8    pub game_time: u64,
9    pub clock_updates: IndexMap<WorldClock, ClockState>,
10}
11
12#[derive(AzBuf, Clone, Debug, PartialEq)]
13pub struct ClockState {
14    #[var]
15    pub total_ticks: u64,
16    pub partial_tick: f32,
17    pub rate: f32,
18}