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 const fn projection(&self) -> Projection
pub const 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
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<>>