pub struct ChunkTicketLevel(u8);Expand description
A chunk ticket level.
Lower levels are stronger tickets. FULL_CHUNK_LEVEL_RAW is the boundary
where a propagated ticket can still make a chunk full; larger levels only
keep dependency chunks loaded far enough for generation.
Tuple Fields§
§0: u8Implementations§
Source§impl ChunkTicketLevel
impl ChunkTicketLevel
Sourcepub const ENTITY_TICKING_CHUNK: Self
pub const ENTITY_TICKING_CHUNK: Self
The weakest level whose full chunk may tick entities.
Sourcepub const BLOCK_TICKING_CHUNK: Self
pub const BLOCK_TICKING_CHUNK: Self
The weakest level whose full chunk may tick blocks.
Sourcepub const FULL_CHUNK: Self
pub const FULL_CHUNK: Self
The weakest level that still permits a full chunk.
Sourcepub const fn for_full_chunk_radius(radius: u8) -> Self
pub const fn for_full_chunk_radius(radius: u8) -> Self
Builds a full-chunk ticket level from a square radius.
Sourcepub const fn for_entity_ticking_radius(radius: u8) -> Self
pub const fn for_entity_ticking_radius(radius: u8) -> Self
Builds an entity-ticking ticket level from a square radius.
Sourcepub const fn full_status(self) -> FullChunkStatus
pub const fn full_status(self) -> FullChunkStatus
Returns vanilla’s full-chunk status for this propagated level.
pub const fn is_full(self) -> bool
pub const fn is_block_ticking(self) -> bool
pub const fn is_entity_ticking(self) -> bool
const fn with_distance(self, distance: u8) -> Option<Self>
const fn distance_to_max(self) -> u8
const fn distance_to_block_ticking(self) -> u8
Trait Implementations§
Source§impl Clone for ChunkTicketLevel
impl Clone for ChunkTicketLevel
Source§fn clone(&self) -> ChunkTicketLevel
fn clone(&self) -> ChunkTicketLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChunkTicketLevel
Source§impl Debug for ChunkTicketLevel
impl Debug for ChunkTicketLevel
impl Eq for ChunkTicketLevel
Source§impl Hash for ChunkTicketLevel
impl Hash for ChunkTicketLevel
Source§impl Ord for ChunkTicketLevel
impl Ord for ChunkTicketLevel
Source§fn cmp(&self, other: &ChunkTicketLevel) -> Ordering
fn cmp(&self, other: &ChunkTicketLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChunkTicketLevel
impl PartialEq for ChunkTicketLevel
Source§impl PartialOrd for ChunkTicketLevel
impl PartialOrd for ChunkTicketLevel
impl StructuralPartialEq for ChunkTicketLevel
Auto Trait Implementations§
impl Freeze for ChunkTicketLevel
impl RefUnwindSafe for ChunkTicketLevel
impl Send for ChunkTicketLevel
impl Sync for ChunkTicketLevel
impl Unpin for ChunkTicketLevel
impl UnsafeUnpin for ChunkTicketLevel
impl UnwindSafe for ChunkTicketLevel
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.§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<>>