Class DensityFunctions.Spline
java.lang.Object
net.minecraft.world.level.levelgen.DensityFunctions.Spline
- All Implemented Interfaces:
DensityFunction
- Enclosing class:
DensityFunctions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordNested classes/interfaces inherited from interface DensityFunction
DensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.NoiseHolder, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyDispatchDataCodec<DensityFunctions.Spline> private static final com.mojang.serialization.MapCodec<DensityFunctions.Spline> private final BoundedFloatFunction<DensityFunctions.Spline.Point> private final CubicSpline<DensityFunctions.Spline.Coordinate> private static final com.mojang.serialization.Codec<CubicSpline<DensityFunctions.Spline.Coordinate>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionKeyDispatchDataCodec<? extends DensityFunction> codec()doublecompute(DensityFunction.FunctionContext context) booleanvoidfillArray(double[] output, DensityFunction.ContextProvider contextProvider) inthashCode()mapChildren(DensityFunction.Visitor visitor) doublemaxValue()doubleminValue()spline()toString()Methods inherited from interface DensityFunction
abs, clamp, cube, halfNegative, invert, mapAll, quarterNegative, square, squeeze
-
Field Details
-
SPLINE_CODEC
private static final com.mojang.serialization.Codec<CubicSpline<DensityFunctions.Spline.Coordinate>> SPLINE_CODEC -
DATA_CODEC
-
CODEC
-
spline
-
sampler
-
-
Constructor Details
-
Spline
-
-
Method Details
-
compute
- Specified by:
computein interfaceDensityFunction
-
minValue
public double minValue()- Specified by:
minValuein interfaceDensityFunction
-
maxValue
public double maxValue()- Specified by:
maxValuein interfaceDensityFunction
-
fillArray
- Specified by:
fillArrayin interfaceDensityFunction
-
mapChildren
- Specified by:
mapChildrenin interfaceDensityFunction
-
codec
- Specified by:
codecin interfaceDensityFunction
-
spline
-
equals
-
hashCode
-
toString
-