Class NoiseChunk.Cache2D
java.lang.Object
net.minecraft.world.level.levelgen.NoiseChunk.Cache2D
- All Implemented Interfaces:
DensityFunction,DensityFunctions.MarkerOrMarked,NoiseChunk.NoiseChunkDensityFunction
- Enclosing class:
NoiseChunk
static class NoiseChunk.Cache2D
extends Object
implements DensityFunctions.MarkerOrMarked, NoiseChunk.NoiseChunkDensityFunction
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.NoiseHolder, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor -
Field Summary
FieldsFields inherited from interface net.minecraft.world.level.levelgen.DensityFunction
CODEC, DIRECT_CODEC, HOLDER_HELPER_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecompute(DensityFunction.FunctionContext pContext) voidfillArray(double[] pArray, DensityFunction.ContextProvider pContextProvider) type()wrapped()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeezeMethods inherited from interface net.minecraft.world.level.levelgen.DensityFunctions.MarkerOrMarked
codec, mapAllMethods inherited from interface net.minecraft.world.level.levelgen.NoiseChunk.NoiseChunkDensityFunction
maxValue, minValue
-
Field Details
-
function
-
lastPos2D
private long lastPos2D -
lastValue
private double lastValue
-
-
Constructor Details
-
Cache2D
Cache2D(DensityFunction pFunction)
-
-
Method Details
-
compute
- Specified by:
computein interfaceDensityFunction
-
fillArray
- Specified by:
fillArrayin interfaceDensityFunction
-
wrapped
- Specified by:
wrappedin interfaceDensityFunctions.MarkerOrMarked- Specified by:
wrappedin interfaceNoiseChunk.NoiseChunkDensityFunction
-
type
- Specified by:
typein interfaceDensityFunctions.MarkerOrMarked
-