pub enum MineshaftPieceKind {
Room {
child_entrance_boxes: Vec<BoundingBox>,
},
Corridor {
has_rails: bool,
spider_corridor: bool,
has_placed_spider: bool,
num_sections: i32,
},
Crossing {
direction: Direction,
is_two_floored: bool,
},
Stairs,
}Expand description
Piece-specific mineshaft placement state.
Variants§
Room
Start room with the child entrance openings stored by vanilla.
Fields
§
child_entrance_boxes: Vec<BoundingBox>Child entrance boxes, offset with the room during Y adjustment.
Corridor
Horizontal corridor segment.
Fields
Crossing
Corridor crossing.
Fields
Stairs
Stair segment.
Implementations§
Source§impl MineshaftPieceKind
impl MineshaftPieceKind
Sourcepub const fn piece_type(&self) -> PieceType
pub const fn piece_type(&self) -> PieceType
Vanilla structure piece type represented by this payload.
Trait Implementations§
Source§impl Clone for MineshaftPieceKind
impl Clone for MineshaftPieceKind
Source§impl Debug for MineshaftPieceKind
impl Debug for MineshaftPieceKind
impl Eq for MineshaftPieceKind
Source§impl PartialEq for MineshaftPieceKind
impl PartialEq for MineshaftPieceKind
impl StructuralPartialEq for MineshaftPieceKind
Auto Trait Implementations§
impl Freeze for MineshaftPieceKind
impl RefUnwindSafe for MineshaftPieceKind
impl Send for MineshaftPieceKind
impl Sync for MineshaftPieceKind
impl Unpin for MineshaftPieceKind
impl UnsafeUnpin for MineshaftPieceKind
impl UnwindSafe for MineshaftPieceKind
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
Checks if this value is equivalent to the given key. Read more
§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.§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
Checks if this value is equivalent to the given key. Read more
§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<>>