#[repr(u32)]pub enum WorldgenStructureKind {
Show 16 variants
BuriedTreasure = 0,
DesertPyramid = 1,
EndCity = 2,
Fortress = 3,
Igloo = 4,
Jigsaw = 5,
JungleTemple = 6,
Mineshaft = 7,
NetherFossil = 8,
OceanMonument = 9,
OceanRuin = 10,
RuinedPortal = 11,
Shipwreck = 12,
Stronghold = 13,
SwampHut = 14,
WoodlandMansion = 15,
}
Variants§
BuriedTreasure = 0
DesertPyramid = 1
EndCity = 2
Fortress = 3
Igloo = 4
Jigsaw = 5
JungleTemple = 6
Mineshaft = 7
NetherFossil = 8
OceanMonument = 9
OceanRuin = 10
RuinedPortal = 11
Shipwreck = 12
Stronghold = 13
SwampHut = 14
WoodlandMansion = 15
Implementations§
Source§impl WorldgenStructureKind
impl WorldgenStructureKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl WorldgenStructureKind
impl WorldgenStructureKind
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 WorldgenStructureKind
impl Clone for WorldgenStructureKind
Source§fn clone(&self) -> WorldgenStructureKind
fn clone(&self) -> WorldgenStructureKind
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 WorldgenStructureKind
impl Debug for WorldgenStructureKind
Source§impl<'de> Deserialize<'de> for WorldgenStructureKind
impl<'de> Deserialize<'de> for WorldgenStructureKind
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 WorldgenStructureKind
impl Display for WorldgenStructureKind
Source§impl FromNbtTag for WorldgenStructureKind
impl FromNbtTag for WorldgenStructureKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for WorldgenStructureKind
impl FromStr for WorldgenStructureKind
Source§impl Hash for WorldgenStructureKind
impl Hash for WorldgenStructureKind
Source§impl PartialEq for WorldgenStructureKind
impl PartialEq for WorldgenStructureKind
Source§impl Registry for WorldgenStructureKind
impl Registry for WorldgenStructureKind
Source§impl Serialize for WorldgenStructureKind
impl Serialize for WorldgenStructureKind
Source§impl ToNbtTag for WorldgenStructureKind
impl ToNbtTag for WorldgenStructureKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for WorldgenStructureKind
impl TryFrom<u32> for WorldgenStructureKind
impl Copy for WorldgenStructureKind
impl Eq for WorldgenStructureKind
impl StructuralPartialEq for WorldgenStructureKind
Auto Trait Implementations§
impl Freeze for WorldgenStructureKind
impl RefUnwindSafe for WorldgenStructureKind
impl Send for WorldgenStructureKind
impl Sync for WorldgenStructureKind
impl Unpin for WorldgenStructureKind
impl UnwindSafe for WorldgenStructureKind
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
)