#[repr(u32)]pub enum WorldgenDensityFunctionKind {
Show 34 variants
BlendAlpha = 0,
BlendOffset = 1,
Beardifier = 2,
OldBlendedNoise = 3,
Interpolated = 4,
FlatCache = 5,
Cache2d = 6,
CacheOnce = 7,
CacheAllInCell = 8,
Noise = 9,
EndIslands = 10,
WeirdScaledSampler = 11,
ShiftedNoise = 12,
RangeChoice = 13,
ShiftA = 14,
ShiftB = 15,
Shift = 16,
BlendDensity = 17,
Clamp = 18,
Abs = 19,
Square = 20,
Cube = 21,
HalfNegative = 22,
QuarterNegative = 23,
Invert = 24,
Squeeze = 25,
Add = 26,
Mul = 27,
Min = 28,
Max = 29,
Spline = 30,
Constant = 31,
YClampedGradient = 32,
FindTopSurface = 33,
}Variants§
BlendAlpha = 0
BlendOffset = 1
Beardifier = 2
OldBlendedNoise = 3
Interpolated = 4
FlatCache = 5
Cache2d = 6
CacheOnce = 7
CacheAllInCell = 8
Noise = 9
EndIslands = 10
WeirdScaledSampler = 11
ShiftedNoise = 12
RangeChoice = 13
ShiftA = 14
ShiftB = 15
Shift = 16
BlendDensity = 17
Clamp = 18
Abs = 19
Square = 20
Cube = 21
HalfNegative = 22
QuarterNegative = 23
Invert = 24
Squeeze = 25
Add = 26
Mul = 27
Min = 28
Max = 29
Spline = 30
Constant = 31
YClampedGradient = 32
FindTopSurface = 33
Implementations§
Source§impl WorldgenDensityFunctionKind
impl WorldgenDensityFunctionKind
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 AzBuf for WorldgenDensityFunctionKind
impl AzBuf for WorldgenDensityFunctionKind
fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl Clone for WorldgenDensityFunctionKind
impl Clone for WorldgenDensityFunctionKind
Source§fn clone(&self) -> WorldgenDensityFunctionKind
fn clone(&self) -> WorldgenDensityFunctionKind
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 WorldgenDensityFunctionKind
impl Debug for WorldgenDensityFunctionKind
Source§impl<'de> Deserialize<'de> for WorldgenDensityFunctionKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for WorldgenDensityFunctionKind
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 WorldgenDensityFunctionKind
Convert the value to a stringified identifier, formatted like
"minecraft:air".
impl Display for WorldgenDensityFunctionKind
Convert the value to a stringified identifier, formatted like
"minecraft:air".
Source§impl FromNbtTag for WorldgenDensityFunctionKind
impl FromNbtTag for WorldgenDensityFunctionKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for WorldgenDensityFunctionKind
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
impl FromStr for WorldgenDensityFunctionKind
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
Source§impl Hash for WorldgenDensityFunctionKind
impl Hash for WorldgenDensityFunctionKind
Source§impl Ord for WorldgenDensityFunctionKind
impl Ord for WorldgenDensityFunctionKind
Source§fn cmp(&self, other: &WorldgenDensityFunctionKind) -> Ordering
fn cmp(&self, other: &WorldgenDensityFunctionKind) -> 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 WorldgenDensityFunctionKind
impl PartialOrd for WorldgenDensityFunctionKind
Source§impl Serialize for WorldgenDensityFunctionKind
Available on crate feature serde only.
impl Serialize for WorldgenDensityFunctionKind
Available on crate feature
serde only.Source§impl ToNbtTag for WorldgenDensityFunctionKind
impl ToNbtTag for WorldgenDensityFunctionKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl<'a> TryFrom<&'a Identifier> for WorldgenDensityFunctionKind
impl<'a> TryFrom<&'a Identifier> for WorldgenDensityFunctionKind
Source§impl TryFrom<u32> for WorldgenDensityFunctionKind
impl TryFrom<u32> for WorldgenDensityFunctionKind
impl Copy for WorldgenDensityFunctionKind
impl Eq for WorldgenDensityFunctionKind
impl StructuralPartialEq for WorldgenDensityFunctionKind
Auto Trait Implementations§
impl Freeze for WorldgenDensityFunctionKind
impl RefUnwindSafe for WorldgenDensityFunctionKind
impl Send for WorldgenDensityFunctionKind
impl Sync for WorldgenDensityFunctionKind
impl Unpin for WorldgenDensityFunctionKind
impl UnwindSafe for WorldgenDensityFunctionKind
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.