struct LocateStructureSearch {
source: CommandSource,
world: Arc<World>,
query: StructureOrTagKey,
plan: StructureLocatePlan,
origin: BlockPos,
phase: LocatePhase,
pending: Option<ChunkRequestHandle>,
candidates: Vec<StructureLocateCandidate>,
best: Option<LocatedStructure>,
random_radius: i32,
started_at: Instant,
}Fields§
§source: CommandSource§world: Arc<World>§query: StructureOrTagKey§plan: StructureLocatePlan§origin: BlockPos§phase: LocatePhase§pending: Option<ChunkRequestHandle>§candidates: Vec<StructureLocateCandidate>§best: Option<LocatedStructure>§random_radius: i32§started_at: InstantImplementations§
Source§impl LocateStructureSearch
impl LocateStructureSearch
fn request_current_candidates(&self) -> ChunkRequestHandle
fn poll_pending_request(&self) -> PendingRequest
fn clear_request(&mut self)
fn first_valid_candidate(&self) -> Option<LocatedStructure>
fn update_best_after_random_radius(&mut self) -> bool
fn generated_structure_at_candidate( &self, candidate: StructureLocateCandidate, ) -> Option<Identifier>
fn finished_result(&self) -> CommandResultSuspensionPoll
fn success_result(&self) -> CommandResultSuspensionPoll
fn cancelled_result() -> CommandResultSuspensionPoll
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LocateStructureSearch
impl !UnwindSafe for LocateStructureSearch
impl Freeze for LocateStructureSearch
impl Send for LocateStructureSearch
impl Sync for LocateStructureSearch
impl Unpin for LocateStructureSearch
impl UnsafeUnpin for LocateStructureSearch
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
§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<>>