#[non_exhaustive]pub struct WorldTime {
pub age: i64,
pub day_time: Option<i64>,
pub day_rate: f32,
}Expand description
The world’s time (update_time), counted on between the server’s updates like the
vanilla client does (the server sends one a second).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.age: i64Game time: the ticks the world has run (the packet’s age).
day_time: Option<i64>The dimension’s day clock in ticks, days included (time_of_day + 24000 * day);
None when the dimension has no day (26.x: the nether) or the server sent none.
day_rate: f32Day clock ticks per game tick: 1 normally, 0 while the day stands still (the
doDaylightCycle / advance_time game rule off, or a paused 26.x clock).
Implementations§
Trait Implementations§
impl Copy for WorldTime
impl StructuralPartialEq for WorldTime
Auto Trait Implementations§
impl Forget for WorldTime
impl Freeze for WorldTime
impl Move for WorldTime
impl RefUnwindSafe for WorldTime
impl Send for WorldTime
impl Sync for WorldTime
impl Unpin for WorldTime
impl UnsafeUnpin for WorldTime
impl UnwindSafe for WorldTime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more