Enum Class SimpleDensityFunction
java.lang.Object
java.lang.Enum<SimpleDensityFunction>
net.minecraft.world.level.levelgen.densityfunction.generator.SimpleDensityFunction
- All Implemented Interfaces:
Serializable, Comparable<SimpleDensityFunction>, Constable, DensityFunction
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface DensityFunction
DensityFunction.Axes, DensityFunction.CompileContext -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.serialization.MapCodec<SimpleDensityFunction> private final StringFields inherited from interface DensityFunction
ALL_AXES, AXIS_X, AXIS_Y, AXIS_Z, CODEC, NO_AXES, REFERENCE_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<SimpleDensityFunction> codec()intid()range()rewriteChildren(DfRewriteRule rule) static SimpleDensityFunctionReturns the enum constant of this class with the specified name.static SimpleDensityFunction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLEND_ALPHA
-
BLEND_OFFSET
-
BEARDIFIER
-
-
Field Details
-
id
-
codec
-
-
Constructor Details
-
SimpleDensityFunction
-
-
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
-
compileSampler
- Specified by:
compileSamplerin interfaceDensityFunction
-
rewriteChildren
- Specified by:
rewriteChildrenin interfaceDensityFunction
-
range
- Specified by:
rangein interfaceDensityFunction
-
domainAxes
public int domainAxes()- Specified by:
domainAxesin interfaceDensityFunction
-
id
-
codec
- Specified by:
codecin interfaceDensityFunction
-