Class NoiseChunk.NoiseInterpolator
java.lang.Object
net.minecraft.world.level.levelgen.NoiseChunk.NoiseInterpolator
- All Implemented Interfaces:
DensityFunction
,DensityFunctions.MarkerOrMarked
,NoiseChunk.NoiseChunkDensityFunction
- Enclosing class:
- NoiseChunk
public class NoiseChunk.NoiseInterpolator
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
Modifier and TypeFieldDescriptionprivate double
private double
private double
private double
private double
private double
private double
private double
private final DensityFunction
(package private) double[][]
(package private) double[][]
private double
private double
private double
private double
private double
private double
private double
Fields inherited from interface net.minecraft.world.level.levelgen.DensityFunction
CODEC, DIRECT_CODEC, HOLDER_HELPER_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate double[][]
allocateSlice
(int p_188855_, int p_188856_) double
compute
(DensityFunction.FunctionContext p_209347_) void
fillArray
(double[] p_209349_, DensityFunction.ContextProvider p_209350_) (package private) void
selectCellYZ
(int p_188864_, int p_188865_) private void
type()
(package private) void
updateForX
(double p_188862_) (package private) void
updateForY
(double p_188851_) (package private) void
updateForZ
(double p_188867_) 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
-
slice0
double[][] slice0 -
slice1
double[][] slice1 -
noiseFiller
-
noise000
private double noise000 -
noise001
private double noise001 -
noise100
private double noise100 -
noise101
private double noise101 -
noise010
private double noise010 -
noise011
private double noise011 -
noise110
private double noise110 -
noise111
private double noise111 -
valueXZ00
private double valueXZ00 -
valueXZ10
private double valueXZ10 -
valueXZ01
private double valueXZ01 -
valueXZ11
private double valueXZ11 -
valueZ0
private double valueZ0 -
valueZ1
private double valueZ1 -
value
private double value
-
-
Constructor Details
-
NoiseInterpolator
NoiseInterpolator(DensityFunction p_209345_)
-
-
Method Details
-
allocateSlice
private double[][] allocateSlice(int p_188855_, int p_188856_) -
selectCellYZ
void selectCellYZ(int p_188864_, int p_188865_) -
updateForY
void updateForY(double p_188851_) -
updateForX
void updateForX(double p_188862_) -
updateForZ
void updateForZ(double p_188867_) -
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
-
swapSlices
private void swapSlices() -
type
- Specified by:
type
in interfaceDensityFunctions.MarkerOrMarked
-