pub enum StrongholdPieceData {
Straight {
entry_door: StrongholdSmallDoorType,
left_child: bool,
right_child: bool,
},
PrisonHall {
entry_door: StrongholdSmallDoorType,
},
LeftTurn {
entry_door: StrongholdSmallDoorType,
},
RightTurn {
entry_door: StrongholdSmallDoorType,
},
RoomCrossing {
entry_door: StrongholdSmallDoorType,
crossing_type: i32,
},
StraightStairsDown {
entry_door: StrongholdSmallDoorType,
},
StairsDown {
entry_door: StrongholdSmallDoorType,
is_source: bool,
},
FiveCrossing {
entry_door: StrongholdSmallDoorType,
left_low: bool,
left_high: bool,
right_low: bool,
right_high: bool,
},
ChestCorridor {
entry_door: StrongholdSmallDoorType,
has_placed_chest: bool,
},
Library {
entry_door: StrongholdSmallDoorType,
is_tall: bool,
},
PortalRoom {
has_placed_spawner: bool,
},
FillerCorridor {
steps: i32,
},
}Expand description
Vanilla stronghold piece runtime state needed by postProcess.
Variants§
Straight
Straight corridor with optional side exits.
Fields
§
entry_door: StrongholdSmallDoorTypeVanilla entryDoor.
PrisonHall
Prison hall.
Fields
§
entry_door: StrongholdSmallDoorTypeVanilla entryDoor.
LeftTurn
Left turn.
Fields
§
entry_door: StrongholdSmallDoorTypeVanilla entryDoor.
RightTurn
Right turn.
Fields
§
entry_door: StrongholdSmallDoorTypeVanilla entryDoor.
RoomCrossing
Room crossing with one of five vanilla decorations.
StraightStairsDown
Straight stair corridor.
Fields
§
entry_door: StrongholdSmallDoorTypeVanilla entryDoor.
StairsDown
Descending stairs, including the source/start piece.
FiveCrossing
Five-way crossing with low/high side exits.
Fields
§
entry_door: StrongholdSmallDoorTypeVanilla entryDoor.
ChestCorridor
Corridor containing a loot chest.
Fields
§
entry_door: StrongholdSmallDoorTypeVanilla entryDoor.
Library
Library room.
PortalRoom
End portal room.
FillerCorridor
Collision filler corridor.
Implementations§
Trait Implementations§
Source§impl Clone for StrongholdPieceData
impl Clone for StrongholdPieceData
Source§fn clone(&self) -> StrongholdPieceData
fn clone(&self) -> StrongholdPieceData
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 StrongholdPieceData
Source§impl Debug for StrongholdPieceData
impl Debug for StrongholdPieceData
impl Eq for StrongholdPieceData
Source§impl PartialEq for StrongholdPieceData
impl PartialEq for StrongholdPieceData
impl StructuralPartialEq for StrongholdPieceData
Auto Trait Implementations§
impl Freeze for StrongholdPieceData
impl RefUnwindSafe for StrongholdPieceData
impl Send for StrongholdPieceData
impl Sync for StrongholdPieceData
impl Unpin for StrongholdPieceData
impl UnsafeUnpin for StrongholdPieceData
impl UnwindSafe for StrongholdPieceData
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<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<>>