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