Class NoiseChunk.CacheOnce
java.lang.Object
net.minecraft.world.level.levelgen.NoiseChunk.CacheOnce
- All Implemented Interfaces:
DensityFunction, DensityFunctions.MarkerOrMarked, NoiseChunk.NoiseChunkDensityFunction
- Enclosing class:
NoiseChunk
private class NoiseChunk.CacheOnce
extends Object
implements NoiseChunk.NoiseChunkDensityFunction, DensityFunctions.MarkerOrMarked
-
Nested Class Summary
Nested classes/interfaces inherited from interface DensityFunction
DensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.NoiseHolder, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DensityFunctionprivate double @Nullable []private longprivate longprivate doubleFields inherited from interface DensityFunction
CODEC, DIRECT_CODEC, HOLDER_HELPER_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecompute(DensityFunction.FunctionContext context) voidfillArray(double[] output, DensityFunction.ContextProvider contextProvider) type()wrapped()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DensityFunction
abs, clamp, cube, halfNegative, invert, quarterNegative, square, squeezeMethods inherited from interface DensityFunctions.MarkerOrMarked
codec, mapAllMethods inherited from interface NoiseChunk.NoiseChunkDensityFunction
maxValue, minValue
-
Field Details
-
function
-
lastCounter
private long lastCounter -
lastArrayCounter
private long lastArrayCounter -
lastValue
private double lastValue -
lastArray
private double @Nullable [] lastArray
-
-
Constructor Details
-
CacheOnce
-
-
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
-