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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentableStringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DensityFunctions.WeirdScaledSampler.RarityValueMapper>(package private) final it.unimi.dsi.fastutil.doubles.Double2DoubleFunction(package private) final doubleprivate final StringFields inherited from interface net.minecraft.util.StringRepresentablePRE_BUILT_MAP_THRESHOLD
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateRarityValueMapper(String p_208470_, it.unimi.dsi.fastutil.doubles.Double2DoubleFunction p_208471_, double p_208472_) 
- 
Method SummaryModifier 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- 
CODECpublic static final com.mojang.serialization.Codec<DensityFunctions.WeirdScaledSampler.RarityValueMapper> CODEC
- 
name
- 
mapperfinal it.unimi.dsi.fastutil.doubles.Double2DoubleFunction mapper
- 
maxRarityfinal double maxRarity
 
- 
- 
Constructor Details- 
RarityValueMapperprivate RarityValueMapper(String p_208470_, it.unimi.dsi.fastutil.doubles.Double2DoubleFunction p_208471_, double p_208472_) 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getSerializedName- Specified by:
- getSerializedNamein interface- StringRepresentable
 
 
-