#[repr(u32)]pub enum WorldgenStructurePiece {
Show 56 variants
Mscorridor = 0,
Mscrossing = 1,
Msroom = 2,
Msstairs = 3,
Nebcr = 4,
Nebef = 5,
Nebs = 6,
Neccs = 7,
Nectb = 8,
Nece = 9,
Nescsc = 10,
Nesclt = 11,
Nesc = 12,
Nescrt = 13,
Necsr = 14,
Nemt = 15,
Nerc = 16,
Nesr = 17,
Nestart = 18,
Shcc = 19,
Shfc = 20,
Sh5c = 21,
Shlt = 22,
Shli = 23,
Shpr = 24,
Shph = 25,
Shrt = 26,
Shrc = 27,
Shsd = 28,
Shstart = 29,
Shs = 30,
Shssd = 31,
Tejp = 32,
Orp = 33,
Iglu = 34,
Rupo = 35,
Tesh = 36,
Tedp = 37,
Omb = 38,
Omcr = 39,
Omdxr = 40,
Omdxyr = 41,
Omdyr = 42,
Omdyzr = 43,
Omdzr = 44,
Omentry = 45,
Ompenthouse = 46,
Omsimple = 47,
Omsimplet = 48,
Omwr = 49,
Ecp = 50,
Wmp = 51,
Btp = 52,
Shipwreck = 53,
Nefos = 54,
Jigsaw = 55,
}
Variants§
Mscorridor = 0
Mscrossing = 1
Msroom = 2
Msstairs = 3
Nebcr = 4
Nebef = 5
Nebs = 6
Neccs = 7
Nectb = 8
Nece = 9
Nescsc = 10
Nesclt = 11
Nesc = 12
Nescrt = 13
Necsr = 14
Nemt = 15
Nerc = 16
Nesr = 17
Nestart = 18
Shcc = 19
Shfc = 20
Sh5c = 21
Shlt = 22
Shli = 23
Shpr = 24
Shph = 25
Shrt = 26
Shrc = 27
Shsd = 28
Shstart = 29
Shs = 30
Shssd = 31
Tejp = 32
Orp = 33
Iglu = 34
Rupo = 35
Tesh = 36
Tedp = 37
Omb = 38
Omcr = 39
Omdxr = 40
Omdxyr = 41
Omdyr = 42
Omdyzr = 43
Omdzr = 44
Omentry = 45
Ompenthouse = 46
Omsimple = 47
Omsimplet = 48
Omwr = 49
Ecp = 50
Wmp = 51
Btp = 52
Shipwreck = 53
Nefos = 54
Jigsaw = 55
Implementations§
Source§impl WorldgenStructurePiece
impl WorldgenStructurePiece
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl WorldgenStructurePiece
impl WorldgenStructurePiece
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl Clone for WorldgenStructurePiece
impl Clone for WorldgenStructurePiece
Source§fn clone(&self) -> WorldgenStructurePiece
fn clone(&self) -> WorldgenStructurePiece
Returns a copy of the value. Read more
1.0.0 · 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 WorldgenStructurePiece
impl Debug for WorldgenStructurePiece
Source§impl<'de> Deserialize<'de> for WorldgenStructurePiece
impl<'de> Deserialize<'de> for WorldgenStructurePiece
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WorldgenStructurePiece
impl Display for WorldgenStructurePiece
Source§impl FromNbtTag for WorldgenStructurePiece
impl FromNbtTag for WorldgenStructurePiece
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for WorldgenStructurePiece
impl FromStr for WorldgenStructurePiece
Source§impl Hash for WorldgenStructurePiece
impl Hash for WorldgenStructurePiece
Source§impl PartialEq for WorldgenStructurePiece
impl PartialEq for WorldgenStructurePiece
Source§impl Registry for WorldgenStructurePiece
impl Registry for WorldgenStructurePiece
Source§impl Serialize for WorldgenStructurePiece
impl Serialize for WorldgenStructurePiece
Source§impl ToNbtTag for WorldgenStructurePiece
impl ToNbtTag for WorldgenStructurePiece
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for WorldgenStructurePiece
impl TryFrom<u32> for WorldgenStructurePiece
impl Copy for WorldgenStructurePiece
impl Eq for WorldgenStructurePiece
impl StructuralPartialEq for WorldgenStructurePiece
Auto Trait Implementations§
impl Freeze for WorldgenStructurePiece
impl RefUnwindSafe for WorldgenStructurePiece
impl Send for WorldgenStructurePiece
impl Sync for WorldgenStructurePiece
impl Unpin for WorldgenStructurePiece
impl UnwindSafe for WorldgenStructurePiece
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)