pub(crate) struct SavedTick<T: TickKey> {
pub(crate) tick_type: T,
pub(crate) pos: BlockPos,
pub(crate) delay: i32,
pub(crate) priority: TickPriority,
}Expand description
A scheduled tick in the chunk persistence representation.
Like vanilla’s SavedTick, this stores relative delay but not sub-tick order.
Loaded ticks receive negative sub-tick orders in their saved list order.
Fields§
§tick_type: TThe block or fluid type this tick targets.
pos: BlockPosThe block position to tick.
delay: i32Delay relative to the game time at which the chunk was saved.
priority: TickPriorityExecution priority.
Trait Implementations§
impl<T: Copy + TickKey> Copy for SavedTick<T>
Auto Trait Implementations§
impl<T> Freeze for SavedTick<T>where
T: Freeze,
impl<T> RefUnwindSafe for SavedTick<T>where
T: RefUnwindSafe,
impl<T> Send for SavedTick<T>where
T: Send,
impl<T> Sync for SavedTick<T>where
T: Sync,
impl<T> Unpin for SavedTick<T>where
T: Unpin,
impl<T> UnsafeUnpin for SavedTick<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SavedTick<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>