Class NoiseInterpolator
java.lang.Object
net.minecraft.world.level.levelgen.NoiseInterpolator
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private int
private int
private int
private double
private double
private double
private double
private double
private double
private double
private double
private double[][]
private double[][]
private double
private double
private double
private double
private double
private double
-
Constructor Summary
ConstructorDescriptionNoiseInterpolator(int p_158595_, int p_158596_, int p_158597_, ChunkPos p_158598_, int p_158599_, NoiseInterpolator.NoiseColumnFiller p_158600_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
advanceCellX(int p_158605_)
private static double[][]
allocateSlice(int p_158616_, int p_158617_)
double
calculateValue(double p_158619_)
private void
fillSlice(double[][] p_158610_, int p_158611_)
void
void
selectCellYZ(int p_158607_, int p_158608_)
void
void
updateForX(double p_158614_)
void
updateForY(double p_158603_)
-
Field Details
-
slice0
private double[][] slice0 -
slice1
private double[][] slice1 -
cellCountY
private final int cellCountY -
cellCountZ
private final int cellCountZ -
cellNoiseMinY
private final int cellNoiseMinY -
noiseColumnFiller
-
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 -
firstCellXInChunk
private final int firstCellXInChunk -
firstCellZInChunk
private final int firstCellZInChunk
-
-
Constructor Details
-
NoiseInterpolator
public NoiseInterpolator(int p_158595_, int p_158596_, int p_158597_, ChunkPos p_158598_, int p_158599_, NoiseInterpolator.NoiseColumnFiller p_158600_)
-
-
Method Details
-
allocateSlice
private static double[][] allocateSlice(int p_158616_, int p_158617_) -
initializeForFirstCellX
public void initializeForFirstCellX() -
advanceCellX
public void advanceCellX(int p_158605_) -
fillSlice
private void fillSlice(double[][] p_158610_, int p_158611_) -
selectCellYZ
public void selectCellYZ(int p_158607_, int p_158608_) -
updateForY
public void updateForY(double p_158603_) -
updateForX
public void updateForX(double p_158614_) -
calculateValue
public double calculateValue(double p_158619_) -
swapSlices
public void swapSlices()
-