Enum Class DensityFunctions.BlendOffset
java.lang.Object
java.lang.Enum<DensityFunctions.BlendOffset>
net.minecraft.world.level.levelgen.DensityFunctions.BlendOffset
- All Implemented Interfaces:
Serializable
,Comparable<DensityFunctions.BlendOffset>
,Constable
,DensityFunction
,DensityFunction.SimpleFunction
- Enclosing class:
DensityFunctions
protected static enum DensityFunctions.BlendOffset
extends Enum<DensityFunctions.BlendOffset>
implements DensityFunction.SimpleFunction
-
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.world.level.levelgen.DensityFunction
DensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.NoiseHolder, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor
-
Enum Constant Summary
-
Field Summary
Fields inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DIRECT_CODEC, HOLDER_HELPER_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionKeyDispatchDataCodec
<? extends DensityFunction> codec()
double
compute
(DensityFunction.FunctionContext p_208573_) void
fillArray
(double[] p_208575_, DensityFunction.ContextProvider p_208576_) double
maxValue()
double
minValue()
static DensityFunctions.BlendOffset
Returns the enum constant of this class with the specified name.static DensityFunctions.BlendOffset[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minecraft.world.level.levelgen.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeeze
Methods inherited from interface net.minecraft.world.level.levelgen.DensityFunction.SimpleFunction
mapAll
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
CODEC
-
-
Constructor Details
-
BlendOffset
private BlendOffset()
-
-
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
-
compute
- Specified by:
compute
in interfaceDensityFunction
-
fillArray
- Specified by:
fillArray
in interfaceDensityFunction
- Specified by:
fillArray
in interfaceDensityFunction.SimpleFunction
-
minValue
public double minValue()- Specified by:
minValue
in interfaceDensityFunction
-
maxValue
public double maxValue()- Specified by:
maxValue
in interfaceDensityFunction
-
codec
- Specified by:
codec
in interfaceDensityFunction
-