#[repr(u32)]pub enum WorldgenFoliagePlacerKind {
BlobFoliagePlacer = 0,
SpruceFoliagePlacer = 1,
PineFoliagePlacer = 2,
AcaciaFoliagePlacer = 3,
BushFoliagePlacer = 4,
FancyFoliagePlacer = 5,
JungleFoliagePlacer = 6,
MegaPineFoliagePlacer = 7,
DarkOakFoliagePlacer = 8,
RandomSpreadFoliagePlacer = 9,
CherryFoliagePlacer = 10,
}Variants§
BlobFoliagePlacer = 0
SpruceFoliagePlacer = 1
PineFoliagePlacer = 2
AcaciaFoliagePlacer = 3
BushFoliagePlacer = 4
FancyFoliagePlacer = 5
JungleFoliagePlacer = 6
MegaPineFoliagePlacer = 7
DarkOakFoliagePlacer = 8
RandomSpreadFoliagePlacer = 9
CherryFoliagePlacer = 10
Implementations§
Source§impl WorldgenFoliagePlacerKind
impl WorldgenFoliagePlacerKind
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl WorldgenFoliagePlacerKind
impl WorldgenFoliagePlacerKind
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 AzaleaRead for WorldgenFoliagePlacerKind
impl AzaleaRead for WorldgenFoliagePlacerKind
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl Clone for WorldgenFoliagePlacerKind
impl Clone for WorldgenFoliagePlacerKind
Source§fn clone(&self) -> WorldgenFoliagePlacerKind
fn clone(&self) -> WorldgenFoliagePlacerKind
Returns a duplicate 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 WorldgenFoliagePlacerKind
impl Debug for WorldgenFoliagePlacerKind
Source§impl<'de> Deserialize<'de> for WorldgenFoliagePlacerKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for WorldgenFoliagePlacerKind
Available on crate feature
serde only.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 WorldgenFoliagePlacerKind
impl Display for WorldgenFoliagePlacerKind
Source§impl FromNbtTag for WorldgenFoliagePlacerKind
impl FromNbtTag for WorldgenFoliagePlacerKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for WorldgenFoliagePlacerKind
impl FromStr for WorldgenFoliagePlacerKind
Source§impl Hash for WorldgenFoliagePlacerKind
impl Hash for WorldgenFoliagePlacerKind
Source§impl Ord for WorldgenFoliagePlacerKind
impl Ord for WorldgenFoliagePlacerKind
Source§fn cmp(&self, other: &WorldgenFoliagePlacerKind) -> Ordering
fn cmp(&self, other: &WorldgenFoliagePlacerKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for WorldgenFoliagePlacerKind
impl PartialOrd for WorldgenFoliagePlacerKind
Source§impl Registry for WorldgenFoliagePlacerKind
impl Registry for WorldgenFoliagePlacerKind
Source§impl Serialize for WorldgenFoliagePlacerKind
Available on crate feature serde only.
impl Serialize for WorldgenFoliagePlacerKind
Available on crate feature
serde only.Source§impl ToNbtTag for WorldgenFoliagePlacerKind
impl ToNbtTag for WorldgenFoliagePlacerKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl<'a> TryFrom<&'a Identifier> for WorldgenFoliagePlacerKind
impl<'a> TryFrom<&'a Identifier> for WorldgenFoliagePlacerKind
Source§impl TryFrom<u32> for WorldgenFoliagePlacerKind
impl TryFrom<u32> for WorldgenFoliagePlacerKind
impl Copy for WorldgenFoliagePlacerKind
impl Eq for WorldgenFoliagePlacerKind
impl StructuralPartialEq for WorldgenFoliagePlacerKind
Auto Trait Implementations§
impl Freeze for WorldgenFoliagePlacerKind
impl RefUnwindSafe for WorldgenFoliagePlacerKind
impl Send for WorldgenFoliagePlacerKind
impl Sync for WorldgenFoliagePlacerKind
impl Unpin for WorldgenFoliagePlacerKind
impl UnwindSafe for WorldgenFoliagePlacerKind
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.