#[repr(u32)]pub enum WorldgenDensityFunctionKind {
Show 32 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,
Squeeze = 24,
Add = 25,
Mul = 26,
Min = 27,
Max = 28,
Spline = 29,
Constant = 30,
YClampedGradient = 31,
}
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
Squeeze = 24
Add = 25
Mul = 26
Min = 27
Max = 28
Spline = 29
Constant = 30
YClampedGradient = 31
Implementations§
Source§impl WorldgenDensityFunctionKind
impl WorldgenDensityFunctionKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
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 Clone for WorldgenDensityFunctionKind
impl Clone for WorldgenDensityFunctionKind
Source§fn clone(&self) -> WorldgenDensityFunctionKind
fn clone(&self) -> WorldgenDensityFunctionKind
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 WorldgenDensityFunctionKind
impl Debug for WorldgenDensityFunctionKind
Source§impl<'de> Deserialize<'de> for WorldgenDensityFunctionKind
impl<'de> Deserialize<'de> for WorldgenDensityFunctionKind
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 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 Hash for WorldgenDensityFunctionKind
impl Hash for WorldgenDensityFunctionKind
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 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,
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
)