Struct Clock
pub struct Clock {
pub game_time: i64,
pub day_time: i64,
}Expand description
The world’s clock as a client mod reads it (clock).
Fields§
§game_time: i64Ticks since the world was created (Level.getGameTime).
day_time: i64The time of day in ticks (Level.getOverworldClockTime): 0 at sunrise, 24000 a
day. It keeps counting past 24000 (/time add, days going by), so take
it modulo 24000 for the hour; /time set can make it negative.
Trait Implementations§
impl Copy for Clock
impl Eq for Clock
impl StructuralPartialEq for Clock
Auto Trait Implementations§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnsafeUnpin for Clock
impl UnwindSafe for Clock
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