Class NoiseChunk
java.lang.Object
net.minecraft.world.level.levelgen.NoiseChunk
- All Implemented Interfaces:
DensityFunction.ContextProvider
,DensityFunction.FunctionContext
public class NoiseChunk
extends Object
implements DensityFunction.ContextProvider, DensityFunction.FunctionContext
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
static interface
(package private) static class
(package private) class
(package private) class
(package private) class
(package private) static interface
class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Aquifer
(package private) int
(package private) long
private final DensityFunctions.BeardifierOrMarker
private final NoiseChunk.FlatCache
private final Blender
private final NoiseChunk.FlatCache
private final NoiseChunk.BlockStateFiller
(package private) final List
<NoiseChunk.CacheAllInCell> (package private) final int
(package private) final int
(package private) final int
(package private) final int
private int
(package private) int
private int
(package private) final int
(package private) boolean
private final int
private final int
(package private) final int
(package private) final int
(package private) int
(package private) int
(package private) int
private final DensityFunction
(package private) boolean
(package private) long
(package private) final List
<NoiseChunk.NoiseInterpolator> private long
private Blender.BlendingOutput
private final NoiseSettings
(package private) final int
private final it.unimi.dsi.fastutil.longs.Long2IntMap
private final DensityFunction.ContextProvider
private final Map
<DensityFunction, DensityFunction> -
Constructor Summary
ConstructorDescriptionNoiseChunk
(int p_224343_, RandomState p_224344_, int p_224345_, int p_224346_, NoiseSettings p_224347_, DensityFunctions.BeardifierOrMarker p_224348_, NoiseGeneratorSettings p_224349_, Aquifer.FluidPicker p_224350_, Blender p_224351_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
advanceCellX
(int p_188750_) aquifer()
int
blockX()
int
blockY()
int
blockZ()
protected Climate.Sampler
cachedClimateSampler
(NoiseRouter p_224360_, List<Climate.ParameterPoint> p_224361_) protected int
protected int
private int
computePreliminarySurfaceLevel
(long p_198250_) void
fillAllDirectly
(double[] p_209224_, DensityFunction p_209225_) private void
fillSlice
(boolean p_209221_, int p_209222_) static NoiseChunk
forChunk
(ChunkAccess p_224353_, RandomState p_224354_, DensityFunctions.BeardifierOrMarker p_224355_, NoiseGeneratorSettings p_224356_, Aquifer.FluidPicker p_224357_, Blender p_224358_) forIndex
(int p_209240_) protected BlockState
(package private) Blender.BlendingOutput
getOrComputeBlendingOutput
(int p_209245_, int p_209246_) void
int
preliminarySurfaceLevel
(int p_198257_, int p_198258_) void
selectCellYZ
(int p_188811_, int p_188812_) void
void
void
updateForX
(int p_209231_, double p_209232_) void
updateForY
(int p_209192_, double p_209193_) void
updateForZ
(int p_209242_, double p_209243_) protected DensityFunction
wrap
(DensityFunction p_209214_) private DensityFunction
wrapNew
(DensityFunction p_209234_)
-
Field Details
-
noiseSettings
-
cellCountXZ
final int cellCountXZ -
cellCountY
final int cellCountY -
cellNoiseMinY
final int cellNoiseMinY -
firstCellX
private final int firstCellX -
firstCellZ
private final int firstCellZ -
firstNoiseX
final int firstNoiseX -
firstNoiseZ
final int firstNoiseZ -
interpolators
-
cellCaches
-
wrapped
-
preliminarySurfaceLevel
private final it.unimi.dsi.fastutil.longs.Long2IntMap preliminarySurfaceLevel -
aquifer
-
initialDensityNoJaggedness
-
blockStateRule
-
blender
-
blendAlpha
-
blendOffset
-
beardifier
-
lastBlendingDataPos
private long lastBlendingDataPos -
lastBlendingOutput
-
noiseSizeXZ
final int noiseSizeXZ -
cellWidth
final int cellWidth -
cellHeight
final int cellHeight -
interpolating
boolean interpolating -
fillingCell
boolean fillingCell -
cellStartBlockX
private int cellStartBlockX -
cellStartBlockY
int cellStartBlockY -
cellStartBlockZ
private int cellStartBlockZ -
inCellX
int inCellX -
inCellY
int inCellY -
inCellZ
int inCellZ -
interpolationCounter
long interpolationCounter -
arrayInterpolationCounter
long arrayInterpolationCounter -
arrayIndex
int arrayIndex -
sliceFillingContextProvider
-
-
Constructor Details
-
NoiseChunk
public NoiseChunk(int p_224343_, RandomState p_224344_, int p_224345_, int p_224346_, NoiseSettings p_224347_, DensityFunctions.BeardifierOrMarker p_224348_, NoiseGeneratorSettings p_224349_, Aquifer.FluidPicker p_224350_, Blender p_224351_)
-
-
Method Details
-
forChunk
public static NoiseChunk forChunk(ChunkAccess p_224353_, RandomState p_224354_, DensityFunctions.BeardifierOrMarker p_224355_, NoiseGeneratorSettings p_224356_, Aquifer.FluidPicker p_224357_, Blender p_224358_) -
cachedClimateSampler
protected Climate.Sampler cachedClimateSampler(NoiseRouter p_224360_, List<Climate.ParameterPoint> p_224361_) -
getInterpolatedState
-
blockX
public int blockX()- Specified by:
blockX
in interfaceDensityFunction.FunctionContext
-
blockY
public int blockY()- Specified by:
blockY
in interfaceDensityFunction.FunctionContext
-
blockZ
public int blockZ()- Specified by:
blockZ
in interfaceDensityFunction.FunctionContext
-
preliminarySurfaceLevel
public int preliminarySurfaceLevel(int p_198257_, int p_198258_) -
computePreliminarySurfaceLevel
private int computePreliminarySurfaceLevel(long p_198250_) -
getBlender
- Specified by:
getBlender
in interfaceDensityFunction.FunctionContext
-
fillSlice
private void fillSlice(boolean p_209221_, int p_209222_) -
initializeForFirstCellX
public void initializeForFirstCellX() -
advanceCellX
public void advanceCellX(int p_188750_) -
forIndex
- Specified by:
forIndex
in interfaceDensityFunction.ContextProvider
-
fillAllDirectly
- Specified by:
fillAllDirectly
in interfaceDensityFunction.ContextProvider
-
selectCellYZ
public void selectCellYZ(int p_188811_, int p_188812_) -
updateForY
public void updateForY(int p_209192_, double p_209193_) -
updateForX
public void updateForX(int p_209231_, double p_209232_) -
updateForZ
public void updateForZ(int p_209242_, double p_209243_) -
stopInterpolation
public void stopInterpolation() -
swapSlices
public void swapSlices() -
aquifer
-
cellWidth
protected int cellWidth() -
cellHeight
protected int cellHeight() -
getOrComputeBlendingOutput
-
wrap
-
wrapNew
-