chunkedge_protocol/packets/play/set_time_s2c.rs
1use chunkedge_binary::{Decode, Encode};
2
3use crate::Packet;
4
5#[derive(Copy, Clone, Debug, Encode, Decode, Packet)]
6pub struct SetTimeS2c {
7 /// The age of the world in 1/20ths of a second.
8 pub world_age: i64,
9 /// The current time of day in 1/20ths of a second.
10 /// The value should be in the range \[0, 24000].
11 /// 6000 is noon, 12000 is sunset, and 18000 is midnight.
12 pub time_of_day: i64,
13 pub time_increasing: bool,
14}