Struct StructureSearchResult
#[non_exhaustive]pub struct StructureSearchResult {
pub structure: String,
pub position: [i32; 3],
}Expand description
The nearest structure start a search found.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.structure: StringRegistry id of the structure, the tag’s member that matched for a #tag.
position: [i32; 3]Where /locate reports the start (StructurePlacement.getLocatePos):
its chunk’s corner at y 0, moved by the set’s locate_offset.
Implementations§
§impl StructureSearchResult
impl StructureSearchResult
pub fn new(structure: String, position: [i32; 3]) -> StructureSearchResult
pub fn new(structure: String, position: [i32; 3]) -> StructureSearchResult
Pair a found structure with its start position.
Trait Implementations§
§impl Clone for StructureSearchResult
impl Clone for StructureSearchResult
§fn clone(&self) -> StructureSearchResult
fn clone(&self) -> StructureSearchResult
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 more§impl Debug for StructureSearchResult
impl Debug for StructureSearchResult
impl Eq for StructureSearchResult
§impl PartialEq for StructureSearchResult
impl PartialEq for StructureSearchResult
impl StructuralPartialEq for StructureSearchResult
Auto Trait Implementations§
impl Freeze for StructureSearchResult
impl RefUnwindSafe for StructureSearchResult
impl Send for StructureSearchResult
impl Sync for StructureSearchResult
impl Unpin for StructureSearchResult
impl UnsafeUnpin for StructureSearchResult
impl UnwindSafe for StructureSearchResult
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