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
Corridor
Horizontal corridor segment.
Fields
Crossing
Corridor crossing.
Fields
§
direction: DirectionDirection stored in vanilla’s "D" field.
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§fn clone(&self) -> MineshaftPieceKind
fn clone(&self) -> MineshaftPieceKind
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 moreSource§impl Debug for MineshaftPieceKind
impl Debug 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<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<>>