pub struct ChunkTicket {
load_level: ChunkTicketLevel,
simulation_level: Option<ChunkTicketLevel>,
}Expand description
A chunk ticket’s load and optional simulation strength.
Fields§
§load_level: ChunkTicketLevel§simulation_level: Option<ChunkTicketLevel>Implementations§
Source§impl ChunkTicket
impl ChunkTicket
Sourcepub const fn loading(load_level: ChunkTicketLevel) -> Self
pub const fn loading(load_level: ChunkTicketLevel) -> Self
Creates a loading-only ticket.
Sourcepub const fn full_chunks(radius: u8) -> Self
pub const fn full_chunks(radius: u8) -> Self
Creates a loading-only ticket that makes chunks full within radius.
Sourcepub const fn simulated_full_chunks(radius: u8) -> Self
pub const fn simulated_full_chunks(radius: u8) -> Self
Creates a vanilla simulation ticket whose source level is FULL - radius.
Sourcepub const fn full_chunks_with_entity_ticking(
load_radius: u8,
entity_ticking_radius: u8,
) -> Self
pub const fn full_chunks_with_entity_ticking( load_radius: u8, entity_ticking_radius: u8, ) -> Self
Creates a ticket with separate full-load and entity-ticking radii.
Sourcepub const fn player(view_distance: u8, simulation_radius: u8) -> Self
pub const fn player(view_distance: u8, simulation_radius: u8) -> Self
Creates a player ticket with Vanilla’s two-chunk loading moat.
Loading is entity-ticking through view_distance, block-ticking one
chunk farther, and full one chunk beyond that. Simulation is capped to
the view distance.
pub const fn load_level(self) -> ChunkTicketLevel
pub const fn simulation_level(self) -> Option<ChunkTicketLevel>
Trait Implementations§
Source§impl Clone for ChunkTicket
impl Clone for ChunkTicket
Source§fn clone(&self) -> ChunkTicket
fn clone(&self) -> ChunkTicket
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 ChunkTicket
Source§impl Debug for ChunkTicket
impl Debug for ChunkTicket
impl Eq for ChunkTicket
Source§impl PartialEq for ChunkTicket
impl PartialEq for ChunkTicket
impl StructuralPartialEq for ChunkTicket
Auto Trait Implementations§
impl Freeze for ChunkTicket
impl RefUnwindSafe for ChunkTicket
impl Send for ChunkTicket
impl Sync for ChunkTicket
impl Unpin for ChunkTicket
impl UnsafeUnpin for ChunkTicket
impl UnwindSafe for ChunkTicket
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> 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<>>