pub struct TileTick {
pub i: String,
pub p: i32,
pub t: i32,
pub x: i32,
pub y: i32,
pub z: i32,
}Expand description
This is data about ticks, that have been scheduled but not happened
Fields§
§i: StringThe id of the block
p: i32The priority
§Note
If multiple tile ticks are schedules, the ones with lower p are processed first,
the order of tile ticks with same p is not regulated and assumed to be random,
this is used for updates that do not interact with each other
t: i32the amount of ticks, until the processing should occur, this can be negativ if the processing is overdue
x: i32The x coordinate of the tile that should be ticked
y: i32The y coordinate of the tile that should be ticked
z: i32The z coordinate of the tile that should be ticked
Trait Implementations§
source§impl PartialEq for TileTick
impl PartialEq for TileTick
impl StructuralPartialEq for TileTick
Auto Trait Implementations§
impl Freeze for TileTick
impl RefUnwindSafe for TileTick
impl Send for TileTick
impl Sync for TileTick
impl Unpin for TileTick
impl UnwindSafe for TileTick
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