pub enum FortressPieceData {
Show 14 variants
BridgeCrossing,
BridgeEndFiller {
self_seed: i32,
},
BridgeStraight,
CastleCorridorStairs,
CastleCorridorTBalcony,
CastleEntrance,
CastleSmallCorridorCrossing,
CastleSmallCorridorLeftTurn {
is_needing_chest: bool,
},
CastleSmallCorridor,
CastleSmallCorridorRightTurn {
is_needing_chest: bool,
},
CastleStalkRoom,
MonsterThrone {
has_placed_spawner: bool,
},
RoomCrossing,
StairsRoom,
}Expand description
Vanilla nether-fortress piece payload persisted for feature-stage placement.
Variants§
BridgeCrossing
Bridge crossing piece.
BridgeEndFiller
Dead-end bridge filler piece.
BridgeStraight
Straight bridge segment.
CastleCorridorStairs
Castle corridor stair segment.
CastleCorridorTBalcony
Castle corridor T balcony segment.
CastleEntrance
Castle entrance room.
CastleSmallCorridorCrossing
Small castle corridor crossing.
CastleSmallCorridorLeftTurn
Small castle corridor left turn.
CastleSmallCorridor
Small straight castle corridor.
CastleSmallCorridorRightTurn
Small castle corridor right turn.
CastleStalkRoom
Nether-wart stair room.
MonsterThrone
Blaze-spawner throne room.
RoomCrossing
Bridge room crossing.
StairsRoom
Bridge stair room.
Implementations§
Source§impl FortressPieceData
impl FortressPieceData
pub(crate) const fn kind(self) -> FortressPieceKind
pub(crate) const fn piece_id(self) -> &'static str
fn new(kind: FortressPieceKind, rng: &mut LegacyRandom) -> Self
Trait Implementations§
Source§impl Clone for FortressPieceData
impl Clone for FortressPieceData
Source§fn clone(&self) -> FortressPieceData
fn clone(&self) -> FortressPieceData
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 FortressPieceData
Source§impl Debug for FortressPieceData
impl Debug for FortressPieceData
impl Eq for FortressPieceData
Source§impl PartialEq for FortressPieceData
impl PartialEq for FortressPieceData
impl StructuralPartialEq for FortressPieceData
Auto Trait Implementations§
impl Freeze for FortressPieceData
impl RefUnwindSafe for FortressPieceData
impl Send for FortressPieceData
impl Sync for FortressPieceData
impl Unpin for FortressPieceData
impl UnsafeUnpin for FortressPieceData
impl UnwindSafe for FortressPieceData
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<>>