pub(super) struct CandidateSequence {
spawn_suggestion: BlockPos,
radius: i32,
count: i32,
coprime: i32,
pub(super) offset: i32,
}Expand description
The shuffled order in which the square around the spawn suggestion is searched.
Fields§
§spawn_suggestion: BlockPos§radius: i32§count: i32§coprime: i32§offset: i32Implementations§
Source§impl CandidateSequence
impl CandidateSequence
pub(super) fn new( spawn_suggestion: BlockPos, radius: i32, ) -> Result<Self, String>
Sourcepub(super) const fn empty(spawn_suggestion: BlockPos) -> Self
pub(super) const fn empty(spawn_suggestion: BlockPos) -> Self
A sequence without candidates, which goes straight to the height fixup.
pub(super) const fn count(&self) -> i32
Trait Implementations§
Source§impl Clone for CandidateSequence
impl Clone for CandidateSequence
impl Copy for CandidateSequence
Auto Trait Implementations§
impl Freeze for CandidateSequence
impl RefUnwindSafe for CandidateSequence
impl Send for CandidateSequence
impl Sync for CandidateSequence
impl Unpin for CandidateSequence
impl UnsafeUnpin for CandidateSequence
impl UnwindSafe for CandidateSequence
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<>>