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
ModifierConstructorDescriptionprivate
NoiseChunk
(int p_209175_, int p_209176_, int p_209177_, NoiseRouter p_209178_, int p_209179_, int p_209180_, DensityFunctions.BeardifierOrMarker p_209181_, NoiseGeneratorSettings p_209182_, Aquifer.FluidPicker p_209183_, Blender p_209184_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
advanceCellX
(int p_188750_) aquifer()
int
blockX()
int
blockY()
int
blockZ()
protected Climate.Sampler
cachedClimateSampler
(NoiseRouter p_209219_) 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_209207_, NoiseRouter p_209208_, Supplier<DensityFunctions.BeardifierOrMarker> p_209209_, NoiseGeneratorSettings p_209210_, Aquifer.FluidPicker p_209211_, Blender p_209212_) static NoiseChunk
forColumn
(int p_209195_, int p_209196_, int p_209197_, int p_209198_, NoiseRouter p_209199_, NoiseGeneratorSettings p_209200_, Aquifer.FluidPicker p_209201_) 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
private NoiseChunk(int p_209175_, int p_209176_, int p_209177_, NoiseRouter p_209178_, int p_209179_, int p_209180_, DensityFunctions.BeardifierOrMarker p_209181_, NoiseGeneratorSettings p_209182_, Aquifer.FluidPicker p_209183_, Blender p_209184_)
-
-
Method Details
-
forChunk
public static NoiseChunk forChunk(ChunkAccess p_209207_, NoiseRouter p_209208_, Supplier<DensityFunctions.BeardifierOrMarker> p_209209_, NoiseGeneratorSettings p_209210_, Aquifer.FluidPicker p_209211_, Blender p_209212_) -
forColumn
public static NoiseChunk forColumn(int p_209195_, int p_209196_, int p_209197_, int p_209198_, NoiseRouter p_209199_, NoiseGeneratorSettings p_209200_, Aquifer.FluidPicker p_209201_) -
cachedClimateSampler
-
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
-
getOrComputeBlendingOutput
-
wrap
-
wrapNew
-