pub enum PoolElement {
Single {
location: Identifier,
processors: ProcessorList,
projection: Projection,
},
LegacySingle {
location: Identifier,
processors: ProcessorList,
projection: Projection,
},
Empty,
Feature {
feature: Identifier,
projection: Projection,
},
List {
elements: Vec<PoolElement>,
projection: Projection,
},
}Expand description
A pool element — one possible piece that can be drawn from a template pool.
Variants§
Single
Single structure template piece.
Fields
§
location: IdentifierTemplate location (e.g., minecraft:village/plains/houses/small_house_1).
§
processors: ProcessorListProcessors applied during block placement.
§
projection: ProjectionVertical placement mode.
LegacySingle
Legacy single piece (same as Single but uses legacy jigsaw processing).
Fields
§
location: IdentifierTemplate location.
§
processors: ProcessorListProcessors applied during block placement.
§
projection: ProjectionVertical placement mode.
Empty
Empty placeholder element — signals no piece should be placed.
Feature
A placed feature (not a structure template).
List
A list of elements placed as a group.
Implementations§
Source§impl PoolElement
impl PoolElement
Sourcepub fn projection(&self) -> Projection
pub fn projection(&self) -> Projection
Returns the projection mode, or Rigid for empty elements.
Trait Implementations§
Source§impl Clone for PoolElement
impl Clone for PoolElement
Source§fn clone(&self) -> PoolElement
fn clone(&self) -> PoolElement
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 moreAuto Trait Implementations§
impl Freeze for PoolElement
impl RefUnwindSafe for PoolElement
impl Send for PoolElement
impl Sync for PoolElement
impl Unpin for PoolElement
impl UnsafeUnpin for PoolElement
impl UnwindSafe for PoolElement
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