Struct FoundStructure
pub struct FoundStructure {
pub position: [i32; 3],
pub pieces: Vec<Arc<dyn StructurePiece>>,
}Expand description
What StructureType::find_generation_point
found: the start’s position (vanilla’s Structure.findGenerationPoint
answer) and its pieces (Structure.generatePieces), at least one.
Fields§
§position: [i32; 3]Where the start sits, in world blocks.
pieces: Vec<Arc<dyn StructurePiece>>The pieces the start places, at least one, shared with the game, which keeps them in its start.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FoundStructure
impl !UnwindSafe for FoundStructure
impl Freeze for FoundStructure
impl Send for FoundStructure
impl Sync for FoundStructure
impl Unpin for FoundStructure
impl UnsafeUnpin for FoundStructure
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