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.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor
-
Field Summary
Fields inherited from interface net.minecraft.world.level.levelgen.DensityFunction
CODEC, DIRECT_CODEC, HOLDER_HELPER_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
compute
(DensityFunction.FunctionContext p_209290_) void
fillArray
(double[] p_209292_, DensityFunction.ContextProvider p_209293_) type()
wrapped()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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.DensityFunctions.MarkerOrMarked
codec
Methods inherited from interface net.minecraft.world.level.levelgen.NoiseChunk.NoiseChunkDensityFunction
mapAll, maxValue, minValue
-
Field Details
-
function
-
lastPos2D
private long lastPos2D -
lastValue
private double lastValue
-
-
Constructor Details
-
Cache2D
Cache2D(DensityFunction p_209288_)
-
-
Method Details
-
compute
- Specified by:
compute
in interfaceDensityFunction
-
fillArray
- Specified by:
fillArray
in interfaceDensityFunction
-
wrapped
- Specified by:
wrapped
in interfaceDensityFunctions.MarkerOrMarked
- Specified by:
wrapped
in interfaceNoiseChunk.NoiseChunkDensityFunction
-
type
- Specified by:
type
in interfaceDensityFunctions.MarkerOrMarked
-