pub enum SupportType {
Full,
Center,
Rigid,
}Expand description
Support type for is_face_sturdy checks.
Determines what kind of support a block face provides for other blocks. Used by fences, walls, torches, etc. to decide if they can connect/attach.
Variants§
Full
Full face support - the entire face must be solid. Used by most blocks that need a solid surface.
Center
Center support - only the center of the face needs to be solid. Used by things like hanging signs that only need a small attachment point.
Rigid
Rigid support - most of the face must be solid, but allows small gaps. Used by bells and similar blocks.
Trait Implementations§
Source§impl Clone for SupportType
impl Clone for SupportType
Source§fn clone(&self) -> SupportType
fn clone(&self) -> SupportType
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 SupportType
Source§impl Debug for SupportType
impl Debug for SupportType
impl Eq for SupportType
Source§impl PartialEq for SupportType
impl PartialEq for SupportType
Source§fn eq(&self, other: &SupportType) -> bool
fn eq(&self, other: &SupportType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SupportType
Auto Trait Implementations§
impl Freeze for SupportType
impl RefUnwindSafe for SupportType
impl Send for SupportType
impl Sync for SupportType
impl Unpin for SupportType
impl UnsafeUnpin for SupportType
impl UnwindSafe for SupportType
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.