Enum Class DensityFunctions.WeirdScaledSampler.RarityValueMapper
java.lang.Object
java.lang.Enum<DensityFunctions.WeirdScaledSampler.RarityValueMapper>
net.minecraft.world.level.levelgen.DensityFunctions.WeirdScaledSampler.RarityValueMapper
- All Implemented Interfaces:
Serializable
,Comparable<DensityFunctions.WeirdScaledSampler.RarityValueMapper>
,Constable
,StringRepresentable
- Enclosing class:
DensityFunctions.WeirdScaledSampler
public static enum DensityFunctions.WeirdScaledSampler.RarityValueMapper
extends Enum<DensityFunctions.WeirdScaledSampler.RarityValueMapper>
implements StringRepresentable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DensityFunctions.WeirdScaledSampler.RarityValueMapper> (package private) final it.unimi.dsi.fastutil.doubles.Double2DoubleFunction
(package private) final double
private final String
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
ModifierConstructorDescriptionprivate
RarityValueMapper
(String p_208470_, it.unimi.dsi.fastutil.doubles.Double2DoubleFunction p_208471_, double p_208472_) -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TYPE1
-
TYPE2
-
-
Field Details
-
CODEC
public static final com.mojang.serialization.Codec<DensityFunctions.WeirdScaledSampler.RarityValueMapper> CODEC -
name
-
mapper
final it.unimi.dsi.fastutil.doubles.Double2DoubleFunction mapper -
maxRarity
final double maxRarity
-
-
Constructor Details
-
RarityValueMapper
private RarityValueMapper(String p_208470_, it.unimi.dsi.fastutil.doubles.Double2DoubleFunction p_208471_, double p_208472_)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-