#[repr(u32)]pub enum WorldgenFeature {
Show 62 variants
NoOp = 0,
Tree = 1,
Flower = 2,
NoBonemealFlower = 3,
RandomPatch = 4,
BlockPile = 5,
SpringFeature = 6,
ChorusPlant = 7,
ReplaceSingleBlock = 8,
VoidStartPlatform = 9,
DesertWell = 10,
Fossil = 11,
HugeRedMushroom = 12,
HugeBrownMushroom = 13,
IceSpike = 14,
GlowstoneBlob = 15,
FreezeTopLayer = 16,
Vines = 17,
BlockColumn = 18,
VegetationPatch = 19,
WaterloggedVegetationPatch = 20,
RootSystem = 21,
MultifaceGrowth = 22,
UnderwaterMagma = 23,
MonsterRoom = 24,
BlueIce = 25,
Iceberg = 26,
ForestRock = 27,
Disk = 28,
Lake = 29,
Ore = 30,
EndPlatform = 31,
EndSpike = 32,
EndIsland = 33,
EndGateway = 34,
Seagrass = 35,
Kelp = 36,
CoralTree = 37,
CoralMushroom = 38,
CoralClaw = 39,
SeaPickle = 40,
SimpleBlock = 41,
Bamboo = 42,
HugeFungus = 43,
NetherForestVegetation = 44,
WeepingVines = 45,
TwistingVines = 46,
BasaltColumns = 47,
DeltaFeature = 48,
NetherrackReplaceBlobs = 49,
FillLayer = 50,
BonusChest = 51,
BasaltPillar = 52,
ScatteredOre = 53,
RandomSelector = 54,
SimpleRandomSelector = 55,
RandomBooleanSelector = 56,
Geode = 57,
DripstoneCluster = 58,
LargeDripstone = 59,
PointedDripstone = 60,
SculkPatch = 61,
}
Variants§
NoOp = 0
Tree = 1
Flower = 2
NoBonemealFlower = 3
RandomPatch = 4
BlockPile = 5
SpringFeature = 6
ChorusPlant = 7
ReplaceSingleBlock = 8
VoidStartPlatform = 9
DesertWell = 10
Fossil = 11
HugeRedMushroom = 12
HugeBrownMushroom = 13
IceSpike = 14
GlowstoneBlob = 15
FreezeTopLayer = 16
Vines = 17
BlockColumn = 18
VegetationPatch = 19
WaterloggedVegetationPatch = 20
RootSystem = 21
MultifaceGrowth = 22
UnderwaterMagma = 23
MonsterRoom = 24
BlueIce = 25
Iceberg = 26
ForestRock = 27
Disk = 28
Lake = 29
Ore = 30
EndPlatform = 31
EndSpike = 32
EndIsland = 33
EndGateway = 34
Seagrass = 35
Kelp = 36
CoralTree = 37
CoralMushroom = 38
CoralClaw = 39
SeaPickle = 40
SimpleBlock = 41
Bamboo = 42
HugeFungus = 43
NetherForestVegetation = 44
WeepingVines = 45
TwistingVines = 46
BasaltColumns = 47
DeltaFeature = 48
NetherrackReplaceBlobs = 49
FillLayer = 50
BonusChest = 51
BasaltPillar = 52
ScatteredOre = 53
RandomSelector = 54
SimpleRandomSelector = 55
RandomBooleanSelector = 56
Geode = 57
DripstoneCluster = 58
LargeDripstone = 59
PointedDripstone = 60
SculkPatch = 61
Implementations§
Source§impl WorldgenFeature
impl WorldgenFeature
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl WorldgenFeature
impl WorldgenFeature
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 WorldgenFeature
impl Clone for WorldgenFeature
Source§fn clone(&self) -> WorldgenFeature
fn clone(&self) -> WorldgenFeature
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 WorldgenFeature
impl Debug for WorldgenFeature
Source§impl<'de> Deserialize<'de> for WorldgenFeature
impl<'de> Deserialize<'de> for WorldgenFeature
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 WorldgenFeature
impl Display for WorldgenFeature
Source§impl FromNbtTag for WorldgenFeature
impl FromNbtTag for WorldgenFeature
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for WorldgenFeature
impl FromStr for WorldgenFeature
Source§impl Hash for WorldgenFeature
impl Hash for WorldgenFeature
Source§impl McBufReadable for WorldgenFeature
impl McBufReadable for WorldgenFeature
Source§impl McBufWritable for WorldgenFeature
impl McBufWritable for WorldgenFeature
Source§impl PartialEq for WorldgenFeature
impl PartialEq for WorldgenFeature
Source§impl Registry for WorldgenFeature
impl Registry for WorldgenFeature
Source§impl Serialize for WorldgenFeature
impl Serialize for WorldgenFeature
Source§impl ToNbtTag for WorldgenFeature
impl ToNbtTag for WorldgenFeature
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for WorldgenFeature
impl TryFrom<u32> for WorldgenFeature
impl Copy for WorldgenFeature
impl Eq for WorldgenFeature
impl StructuralPartialEq for WorldgenFeature
Auto Trait Implementations§
impl Freeze for WorldgenFeature
impl RefUnwindSafe for WorldgenFeature
impl Send for WorldgenFeature
impl Sync for WorldgenFeature
impl Unpin for WorldgenFeature
impl UnwindSafe for WorldgenFeature
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
)