pub enum Projection {
Rigid,
TerrainMatching,
}Expand description
Projection mode for pool elements.
Vanilla’s StructureTemplatePool.Projection.
Variants§
Rigid
Fixed Y position, stacked based on jigsaw positions.
TerrainMatching
Adjusts vertically to match terrain surface.
Implementations§
Source§impl Projection
impl Projection
Sourcepub const fn ground_level_delta(self) -> i32
pub const fn ground_level_delta(self) -> i32
Returns the ground level delta for this projection.
Vanilla’s StructurePoolElement.getGroundLevelDelta() returns 1 by default.
This is the offset from the piece’s minY to ground level.
Trait Implementations§
Source§impl Clone for Projection
impl Clone for Projection
Source§fn clone(&self) -> Projection
fn clone(&self) -> Projection
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 moreimpl Copy for Projection
Source§impl Debug for Projection
impl Debug for Projection
impl Eq for Projection
Source§impl PartialEq for Projection
impl PartialEq for Projection
Source§fn eq(&self, other: &Projection) -> bool
fn eq(&self, other: &Projection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Projection
Auto Trait Implementations§
impl Freeze for Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnsafeUnpin for Projection
impl UnwindSafe for Projection
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.