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 SummaryNested classes/interfaces inherited from interface net.minecraft.world.level.levelgen.DensityFunctionDensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.NoiseHolder, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor
- 
Field SummaryFieldsFields inherited from interface net.minecraft.world.level.levelgen.DensityFunctionCODEC, DIRECT_CODEC, HOLDER_HELPER_CODEC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoublecompute(DensityFunction.FunctionContext p_209290_) voidfillArray(double[] p_209292_, DensityFunction.ContextProvider p_209293_) type()wrapped()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.DensityFunctionabs, clamp, cube, halfNegative, quarterNegative, square, squeezeMethods inherited from interface net.minecraft.world.level.levelgen.DensityFunctions.MarkerOrMarkedcodec, mapAllMethods inherited from interface net.minecraft.world.level.levelgen.NoiseChunk.NoiseChunkDensityFunctionmaxValue, minValue
- 
Field Details- 
function
- 
lastPos2Dprivate long lastPos2D
- 
lastValueprivate double lastValue
 
- 
- 
Constructor Details- 
Cache2DCache2D(DensityFunction p_209288_) 
 
- 
- 
Method Details- 
compute- Specified by:
- computein interface- DensityFunction
 
- 
fillArray- Specified by:
- fillArrayin interface- DensityFunction
 
- 
wrapped- Specified by:
- wrappedin interface- DensityFunctions.MarkerOrMarked
- Specified by:
- wrappedin interface- NoiseChunk.NoiseChunkDensityFunction
 
- 
type- Specified by:
- typein interface- DensityFunctions.MarkerOrMarked
 
 
-