pub enum PersistentStrongholdPieceData {
Straight {
entry_door: PersistentStrongholdSmallDoorType,
left_child: bool,
right_child: bool,
},
PrisonHall {
entry_door: PersistentStrongholdSmallDoorType,
},
LeftTurn {
entry_door: PersistentStrongholdSmallDoorType,
},
RightTurn {
entry_door: PersistentStrongholdSmallDoorType,
},
RoomCrossing {
entry_door: PersistentStrongholdSmallDoorType,
crossing_type: i32,
},
StraightStairsDown {
entry_door: PersistentStrongholdSmallDoorType,
},
StairsDown {
entry_door: PersistentStrongholdSmallDoorType,
is_source: bool,
},
FiveCrossing {
entry_door: PersistentStrongholdSmallDoorType,
left_low: bool,
left_high: bool,
right_low: bool,
right_high: bool,
},
ChestCorridor {
entry_door: PersistentStrongholdSmallDoorType,
has_placed_chest: bool,
},
Library {
entry_door: PersistentStrongholdSmallDoorType,
is_tall: bool,
},
PortalRoom {
has_placed_spawner: bool,
},
FillerCorridor {
steps: i32,
},
}Expand description
Persisted piece-specific stronghold data.
Variants§
Straight
Straight corridor with optional side exits.
Fields
§
entry_door: PersistentStrongholdSmallDoorTypeVanilla entryDoor.
PrisonHall
Prison hall.
Fields
§
entry_door: PersistentStrongholdSmallDoorTypeVanilla entryDoor.
LeftTurn
Left turn.
Fields
§
entry_door: PersistentStrongholdSmallDoorTypeVanilla entryDoor.
RightTurn
Right turn.
Fields
§
entry_door: PersistentStrongholdSmallDoorTypeVanilla entryDoor.
RoomCrossing
Room crossing with one of five vanilla decorations.
Fields
§
entry_door: PersistentStrongholdSmallDoorTypeVanilla entryDoor.
StraightStairsDown
Straight stair corridor.
Fields
§
entry_door: PersistentStrongholdSmallDoorTypeVanilla entryDoor.
StairsDown
Descending stairs, including the source/start piece.
Fields
§
entry_door: PersistentStrongholdSmallDoorTypeVanilla entryDoor.
FiveCrossing
Five-way crossing with low/high side exits.
Fields
§
entry_door: PersistentStrongholdSmallDoorTypeVanilla entryDoor.
ChestCorridor
Corridor containing a loot chest.
Fields
§
entry_door: PersistentStrongholdSmallDoorTypeVanilla entryDoor.
Library
Library room.
Fields
§
entry_door: PersistentStrongholdSmallDoorTypeVanilla entryDoor.
PortalRoom
End portal room.
FillerCorridor
Collision filler corridor.
Trait Implementations§
Source§impl<'de, __WincodeConfig: Config> SchemaRead<'de, __WincodeConfig> for PersistentStrongholdPieceData
impl<'de, __WincodeConfig: Config> SchemaRead<'de, __WincodeConfig> for PersistentStrongholdPieceData
type Dst = PersistentStrongholdPieceData
Source§fn read(
reader: impl Reader<'de>,
dst: &mut MaybeUninit<Self::Dst>,
) -> ReadResult<()>
fn read( reader: impl Reader<'de>, dst: &mut MaybeUninit<Self::Dst>, ) -> ReadResult<()>
Auto Trait Implementations§
impl Freeze for PersistentStrongholdPieceData
impl RefUnwindSafe for PersistentStrongholdPieceData
impl Send for PersistentStrongholdPieceData
impl Sync for PersistentStrongholdPieceData
impl Unpin for PersistentStrongholdPieceData
impl UnsafeUnpin for PersistentStrongholdPieceData
impl UnwindSafe for PersistentStrongholdPieceData
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
§impl<'de, T, C> Deserialize<'de, C> for Twhere
C: Config,
T: SchemaRead<'de, C>,
impl<'de, T, C> Deserialize<'de, C> for Twhere
C: Config,
T: SchemaRead<'de, C>,
§fn deserialize(src: &'de [u8], config: C) -> Result<Self::Dst, ReadError>
fn deserialize(src: &'de [u8], config: C) -> Result<Self::Dst, ReadError>
Deserialize the input bytes into a new
Self::Dst.§fn deserialize_into(
src: &'de [u8],
dst: &mut MaybeUninit<Self::Dst>,
config: C,
) -> Result<(), ReadError>
fn deserialize_into( src: &'de [u8], dst: &mut MaybeUninit<Self::Dst>, config: C, ) -> Result<(), ReadError>
Deserialize the input bytes into
dst.§impl<'de, T> Deserialize<'de> for Twhere
T: SchemaRead<'de, Configuration>,
impl<'de, T> Deserialize<'de> for Twhere
T: SchemaRead<'de, Configuration>,
§fn deserialize(src: &'de [u8]) -> Result<Self::Dst, ReadError>
fn deserialize(src: &'de [u8]) -> Result<Self::Dst, ReadError>
Deserialize the input
src bytes into a new Self::Dst.§fn deserialize_into(
src: &'de [u8],
dst: &mut MaybeUninit<Self::Dst>,
) -> Result<(), ReadError>
fn deserialize_into( src: &'de [u8], dst: &mut MaybeUninit<Self::Dst>, ) -> Result<(), ReadError>
Deserialize the input
src bytes into dst.§impl<T> DeserializeOwned for Twhere
T: SchemaReadOwned<Configuration>,
impl<T> DeserializeOwned for Twhere
T: SchemaReadOwned<Configuration>,
§fn deserialize_from<'de>(src: impl Reader<'de>) -> Result<Self::Dst, ReadError>
fn deserialize_from<'de>(src: impl Reader<'de>) -> Result<Self::Dst, ReadError>
Deserialize from the given [
Reader] into a new Self::Dst.§fn deserialize_from_into<'de>(
src: impl Reader<'de>,
dst: &mut MaybeUninit<Self::Dst>,
) -> Result<(), ReadError>
fn deserialize_from_into<'de>( src: impl Reader<'de>, dst: &mut MaybeUninit<Self::Dst>, ) -> Result<(), ReadError>
Deserialize from the given [
Reader] into dst.§impl<T, C> DeserializeOwned<C> for Twhere
C: Config,
T: SchemaReadOwned<C>,
impl<T, C> DeserializeOwned<C> for Twhere
C: Config,
T: SchemaReadOwned<C>,
§fn deserialize_from<'de>(src: impl Reader<'de>) -> Result<Self::Dst, ReadError>
fn deserialize_from<'de>(src: impl Reader<'de>) -> Result<Self::Dst, ReadError>
Deserialize from the given [
Reader] into a new Self::Dst.§fn deserialize_from_into<'de>(
src: impl Reader<'de>,
dst: &mut MaybeUninit<Self::Dst>,
) -> Result<(), ReadError>
fn deserialize_from_into<'de>( src: impl Reader<'de>, dst: &mut MaybeUninit<Self::Dst>, ) -> Result<(), ReadError>
Deserialize from the given [
Reader] into dst.§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<>>§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T, C> SchemaReadOwned<C> for Twhere
C: ConfigCore,
T: for<'de> SchemaRead<'de, C>,
§impl<T> Serialize for Twhere
T: SchemaWrite<Configuration> + ?Sized,
impl<T> Serialize for Twhere
T: SchemaWrite<Configuration> + ?Sized,
§fn serialize(src: &Self::Src) -> Result<Vec<u8>, WriteError>
fn serialize(src: &Self::Src) -> Result<Vec<u8>, WriteError>
Serialize a serializable type into a
Vec of bytes.§fn serialize_into(dst: impl Writer, src: &Self::Src) -> Result<(), WriteError>
fn serialize_into(dst: impl Writer, src: &Self::Src) -> Result<(), WriteError>
Serialize a serializable type into the given byte buffer.
§fn serialized_size(src: &Self::Src) -> Result<u64, WriteError>
fn serialized_size(src: &Self::Src) -> Result<u64, WriteError>
Get the size in bytes of the type when serialized.
§impl<T, C> Serialize<C> for Twhere
C: Config,
T: SchemaWrite<C> + ?Sized,
impl<T, C> Serialize<C> for Twhere
C: Config,
T: SchemaWrite<C> + ?Sized,
§fn serialize(src: &Self::Src, config: C) -> Result<Vec<u8>, WriteError>
fn serialize(src: &Self::Src, config: C) -> Result<Vec<u8>, WriteError>
Serialize a serializable type into a
Vec of bytes.§fn serialize_into(
dst: impl Writer,
src: &Self::Src,
config: C,
) -> Result<(), WriteError>
fn serialize_into( dst: impl Writer, src: &Self::Src, config: C, ) -> Result<(), WriteError>
Serialize a serializable type into the given [
Writer].§fn serialized_size(src: &Self::Src, config: C) -> Result<u64, WriteError>
fn serialized_size(src: &Self::Src, config: C) -> Result<u64, WriteError>
Get the size in bytes of the type when serialized.