Class ChunkNoiseSampler
- All Implemented Interfaces:
- DensityFunction.EachApplier,- DensityFunction.NoisePos
ChunkNoiseSampler is responsible for sampling the density functions for
 the cells in each chunk, managing caches and interpolators, the Blender,
 and the block state samplers.
 An instance of this is created for every chunk.
- Mappings:
- Namespace - Name - official - dho- intermediary - net/minecraft/class_6568- named - net/minecraft/world/gen/chunk/ChunkNoiseSampler
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate classprivate classstatic interfaceprivate static classprivate classprivate classclassprivate classprivate static interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Map<DensityFunction,DensityFunction> private final AquiferSamplerprivate final DensityFunctionTypes.Beardifyingprivate final Blenderprivate final ChunkNoiseSampler.BlockStateSamplerprivate final ChunkNoiseSampler.FlatCacheprivate final ChunkNoiseSampler.FlatCache(package private) long(package private) final List<ChunkNoiseSampler.CellCache>(package private) int(package private) int(package private) intprivate final GenerationShapeConfig(package private) final int(package private) final int(package private) final int(package private) intprivate final DensityFunctionprivate final DensityFunction.EachApplierThe implementation ofEachApplierthat is used for filling the interpolators' density buffers.(package private) final List<ChunkNoiseSampler.DensityInterpolator>(package private) boolean(package private) booleanprivate longprivate Blender.BlendResult(package private) final int(package private) long(package private) final int(package private) final intprivate int(package private) intprivate intprivate final intprivate final intprivate final Long2IntMap(package private) final int(package private) final int
- 
Constructor SummaryConstructorsConstructorDescriptionChunkNoiseSampler(int horizontalCellCount, NoiseConfig noiseConfig, int startBlockX, int startBlockZ, GenerationShapeConfig generationShapeConfig, DensityFunctionTypes.Beardifying beardifying, ChunkGeneratorSettings chunkGeneratorSettings, AquiferSampler.FluidLevelSampler fluidLevelSampler, Blender blender) 
- 
Method SummaryModifier and TypeMethodDescriptionat(int int2) Returns the block position at a specific index of the density array.intblockX()intblockY()intblockZ()(package private) Blender.BlendResultcalculateBlendResult(int blockX, int blockZ) private intcalculateSurfaceHeightEstimate(long columnPos) static ChunkNoiseSamplercreate(Chunk chunk, NoiseConfig noiseConfig, DensityFunctionTypes.Beardifying beardifying, ChunkGeneratorSettings chunkGeneratorSettings, AquiferSampler.FluidLevelSampler fluidLevelSampler, Blender blender) protected MultiNoiseUtil.MultiNoiseSamplercreateMultiNoiseSampler(NoiseRouter noiseRouter, List<MultiNoiseUtil.NoiseHypercube> spawnTarget) intestimateSurfaceHeight(int blockX, int blockZ) voidfill(double[] densities, DensityFunction densityFunction) Fills the density array using a density function.protected DensityFunctiongetActualDensityFunction(DensityFunction function) Returns the actual density function for a given density function.private DensityFunctiongetActualDensityFunctionImpl(DensityFunction function) Returns the actual density function for a given density function.protected intprotected intvoidinterpolateX(int blockX, double deltaX) Interpolates density values on the X axis for every interpolator.voidinterpolateY(int blockY, double deltaY) Interpolates density values on the Y axis for every interpolator.voidinterpolateZ(int blockZ, double deltaZ) Interpolates density values on the Z axis for every interpolator.voidonSampledCellCorners(int cellY, int cellZ) This should be called when the start and end density buffers are correctly filled for the current cell.protected @Nullable BlockStateprivate voidsampleDensity(boolean start, int cellX) Samples the density values for all cells in the chunk with the given X coordinate.voidsampleEndDensity(int cellX) Samples the density values for all cells in the chunk with the given X coordinate.voidSamples the density values for all cells in the chunk with the first X coordinate.voidStops the interpolation loop for this chunk.voidSwaps the start and end density buffers of every interpolator.
- 
Field Details- 
generationShapeConfig- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho;a:Ldhs;- intermediary - field_35674- Lnet/minecraft/class_6568;field_35674:Lnet/minecraft/class_5309;- named - generationShapeConfig- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;generationShapeConfig:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
 
- 
horizontalCellCountfinal int horizontalCellCount- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldho;b:I- intermediary - field_34599- Lnet/minecraft/class_6568;field_34599:I- named - horizontalCellCount- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalCellCount:I
 
- 
verticalCellCountfinal int verticalCellCount- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldho;c:I- intermediary - field_34598- Lnet/minecraft/class_6568;field_34598:I- named - verticalCellCount- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;verticalCellCount:I
 
- 
minimumCellYfinal int minimumCellY- Mappings:
- Namespace - Name - Mixin selector - official - d- Ldho;d:I- intermediary - field_34600- Lnet/minecraft/class_6568;field_34600:I- named - minimumCellY- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;minimumCellY:I
 
- 
startCellXprivate final int startCellX- Mappings:
- Namespace - Name - Mixin selector - official - e- Ldho;e:I- intermediary - field_34601- Lnet/minecraft/class_6568;field_34601:I- named - startCellX- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startCellX:I
 
- 
startCellZprivate final int startCellZ- Mappings:
- Namespace - Name - Mixin selector - official - f- Ldho;f:I- intermediary - field_34602- Lnet/minecraft/class_6568;field_34602:I- named - startCellZ- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startCellZ:I
 
- 
startBiomeXfinal int startBiomeX- Mappings:
- Namespace - Name - Mixin selector - official - g- Ldho;g:I- intermediary - field_34603- Lnet/minecraft/class_6568;field_34603:I- named - startBiomeX- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBiomeX:I
 
- 
startBiomeZfinal int startBiomeZ- Mappings:
- Namespace - Name - Mixin selector - official - h- Ldho;h:I- intermediary - field_34604- Lnet/minecraft/class_6568;field_34604:I- named - startBiomeZ- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBiomeZ:I
 
- 
interpolators- Mappings:
- Namespace - Name - Mixin selector - official - i- Ldho;i:Ljava/util/List;- intermediary - field_34605- Lnet/minecraft/class_6568;field_34605:Ljava/util/List;- named - interpolators- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolators:Ljava/util/List;
 
- 
caches- Mappings:
- Namespace - Name - Mixin selector - official - j- Ldho;j:Ljava/util/List;- intermediary - field_36581- Lnet/minecraft/class_6568;field_36581:Ljava/util/List;- named - caches- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;caches:Ljava/util/List;
 
- 
actualDensityFunctionCache- Mappings:
- Namespace - Name - Mixin selector - official - k- Ldho;k:Ljava/util/Map;- intermediary - field_36582- Lnet/minecraft/class_6568;field_36582:Ljava/util/Map;- named - actualDensityFunctionCache- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;actualDensityFunctionCache:Ljava/util/Map;
 
- 
surfaceHeightEstimateCache- Mappings:
- Namespace - Name - Mixin selector - official - l- Ldho;l:Lit/unimi/dsi/fastutil/longs/Long2IntMap;- intermediary - field_36273- Lnet/minecraft/class_6568;field_36273:Lit/unimi/dsi/fastutil/longs/Long2IntMap;- named - surfaceHeightEstimateCache- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;surfaceHeightEstimateCache:Lit/unimi/dsi/fastutil/longs/Long2IntMap;
 
- 
aquiferSampler- Mappings:
- Namespace - Name - Mixin selector - official - m- Ldho;m:Ldgw;- intermediary - field_34613- Lnet/minecraft/class_6568;field_34613:Lnet/minecraft/class_6350;- named - aquiferSampler- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;aquiferSampler:Lnet/minecraft/world/gen/chunk/AquiferSampler;
 
- 
initialDensityWithoutJaggedness- Mappings:
- Namespace - Name - Mixin selector - official - n- Ldho;n:Ldhd;- intermediary - field_36583- Lnet/minecraft/class_6568;field_36583:Lnet/minecraft/class_6910;- named - initialDensityWithoutJaggedness- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;initialDensityWithoutJaggedness:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
 
- 
blockStateSampler- Mappings:
- Namespace - Name - Mixin selector - official - o- Ldho;o:Ldho$c;- intermediary - field_36584- Lnet/minecraft/class_6568;field_36584:Lnet/minecraft/class_6568$class_6569;- named - blockStateSampler- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;blockStateSampler:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$BlockStateSampler;
 
- 
blender- Mappings:
- Namespace - Name - Mixin selector - official - p- Ldho;p:Ldim;- intermediary - field_35487- Lnet/minecraft/class_6568;field_35487:Lnet/minecraft/class_6748;- named - blender- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;blender:Lnet/minecraft/world/gen/chunk/Blender;
 
- 
cachedBlendAlphaDensityFunction- Mappings:
- Namespace - Name - Mixin selector - official - q- Ldho;q:Ldho$g;- intermediary - field_36585- Lnet/minecraft/class_6568;field_36585:Lnet/minecraft/class_6568$class_6951;- named - cachedBlendAlphaDensityFunction- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cachedBlendAlphaDensityFunction:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;
 
- 
cachedBlendOffsetDensityFunction- Mappings:
- Namespace - Name - Mixin selector - official - r- Ldho;r:Ldho$g;- intermediary - field_36586- Lnet/minecraft/class_6568;field_36586:Lnet/minecraft/class_6568$class_6951;- named - cachedBlendOffsetDensityFunction- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cachedBlendOffsetDensityFunction:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;
 
- 
beardifying- Mappings:
- Namespace - Name - Mixin selector - official - s- Ldho;s:Ldhe$c;- intermediary - field_37113- Lnet/minecraft/class_6568;field_37113:Lnet/minecraft/class_6916$class_7050;- named - beardifying- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;beardifying:Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Beardifying;
 
- 
lastBlendingColumnPosprivate long lastBlendingColumnPos- Mappings:
- Namespace - Name - Mixin selector - official - t- Ldho;t:J- intermediary - field_36587- Lnet/minecraft/class_6568;field_36587:J- named - lastBlendingColumnPos- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;lastBlendingColumnPos:J
 
- 
lastBlendingResult- Mappings:
- Namespace - Name - Mixin selector - official - u- Ldho;u:Ldim$a;- intermediary - field_36588- Lnet/minecraft/class_6568;field_36588:Lnet/minecraft/class_6748$class_6956;- named - lastBlendingResult- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;lastBlendingResult:Lnet/minecraft/world/gen/chunk/Blender$BlendResult;
 
- 
horizontalBiomeEndfinal int horizontalBiomeEnd- Mappings:
- Namespace - Name - Mixin selector - official - v- Ldho;v:I- intermediary - field_36589- Lnet/minecraft/class_6568;field_36589:I- named - horizontalBiomeEnd- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalBiomeEnd:I
 
- 
horizontalCellBlockCountfinal int horizontalCellBlockCount- Mappings:
- Namespace - Name - Mixin selector - official - w- Ldho;w:I- intermediary - field_36590- Lnet/minecraft/class_6568;field_36590:I- named - horizontalCellBlockCount- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalCellBlockCount:I
 
- 
verticalCellBlockCountfinal int verticalCellBlockCount- Mappings:
- Namespace - Name - Mixin selector - official - x- Ldho;x:I- intermediary - field_36591- Lnet/minecraft/class_6568;field_36591:I- named - verticalCellBlockCount- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;verticalCellBlockCount:I
 
- 
isInInterpolationLoopboolean isInInterpolationLoop- Mappings:
- Namespace - Name - Mixin selector - official - y- Ldho;y:Z- intermediary - field_36592- Lnet/minecraft/class_6568;field_36592:Z- named - isInInterpolationLoop- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;isInInterpolationLoop:Z
 
- 
isSamplingForCachesboolean isSamplingForCaches- Mappings:
- Namespace - Name - Mixin selector - official - z- Ldho;z:Z- intermediary - field_36593- Lnet/minecraft/class_6568;field_36593:Z- named - isSamplingForCaches- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;isSamplingForCaches:Z
 
- 
startBlockXprivate int startBlockX- Mappings:
- Namespace - Name - Mixin selector - official - A- Ldho;A:I- intermediary - field_36594- Lnet/minecraft/class_6568;field_36594:I- named - startBlockX- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockX:I
 
- 
startBlockYint startBlockY- Mappings:
- Namespace - Name - Mixin selector - official - B- Ldho;B:I- intermediary - field_36572- Lnet/minecraft/class_6568;field_36572:I- named - startBlockY- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockY:I
 
- 
startBlockZprivate int startBlockZ- Mappings:
- Namespace - Name - Mixin selector - official - C- Ldho;C:I- intermediary - field_36573- Lnet/minecraft/class_6568;field_36573:I- named - startBlockZ- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockZ:I
 
- 
cellBlockXint cellBlockX- Mappings:
- Namespace - Name - Mixin selector - official - D- Ldho;D:I- intermediary - field_36574- Lnet/minecraft/class_6568;field_36574:I- named - cellBlockX- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockX:I
 
- 
cellBlockYint cellBlockY- Mappings:
- Namespace - Name - Mixin selector - official - E- Ldho;E:I- intermediary - field_36575- Lnet/minecraft/class_6568;field_36575:I- named - cellBlockY- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockY:I
 
- 
cellBlockZint cellBlockZ- Mappings:
- Namespace - Name - Mixin selector - official - F- Ldho;F:I- intermediary - field_36576- Lnet/minecraft/class_6568;field_36576:I- named - cellBlockZ- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockZ:I
 
- 
sampleUniqueIndexlong sampleUniqueIndex- Mappings:
- Namespace - Name - Mixin selector - official - G- Ldho;G:J- intermediary - field_36577- Lnet/minecraft/class_6568;field_36577:J- named - sampleUniqueIndex- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleUniqueIndex:J
 
- 
cacheOnceUniqueIndexlong cacheOnceUniqueIndex- Mappings:
- Namespace - Name - Mixin selector - official - H- Ldho;H:J- intermediary - field_36578- Lnet/minecraft/class_6568;field_36578:J- named - cacheOnceUniqueIndex- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cacheOnceUniqueIndex:J
 
- 
indexint index- Mappings:
- Namespace - Name - Mixin selector - official - I- Ldho;I:I- intermediary - field_36579- Lnet/minecraft/class_6568;field_36579:I- named - index- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;index:I
 
- 
interpolationEachApplierThe implementation ofEachApplierthat is used for filling the interpolators' density buffers.It runs on a vertical column of cells, with the density being sampled at the first block in the cell (cell-local coordinate 0for X, Y and Z).- Mappings:
- Namespace - Name - Mixin selector - official - J- Ldho;J:Ldhd$a;- intermediary - field_36580- Lnet/minecraft/class_6568;field_36580:Lnet/minecraft/class_6910$class_6911;- named - interpolationEachApplier- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolationEachApplier:Lnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;
 
 
- 
- 
Constructor Details- 
ChunkNoiseSamplerpublic ChunkNoiseSampler(int horizontalCellCount, NoiseConfig noiseConfig, int startBlockX, int startBlockZ, GenerationShapeConfig generationShapeConfig, DensityFunctionTypes.Beardifying beardifying, ChunkGeneratorSettings chunkGeneratorSettings, AquiferSampler.FluidLevelSampler fluidLevelSampler, Blender blender) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Ldho;<init>(ILdhy;IILdhs;Ldhe$c;Ldhp;Ldgw$a;Ldim;)V- intermediary - <init>- Lnet/minecraft/class_6568;<init>(ILnet/minecraft/class_7138;IILnet/minecraft/class_5309;Lnet/minecraft/class_6916$class_7050;Lnet/minecraft/class_5284;Lnet/minecraft/class_6350$class_6565;Lnet/minecraft/class_6748;)V- named - <init>- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;<init>(ILnet/minecraft/world/gen/noise/NoiseConfig;IILnet/minecraft/world/gen/chunk/GenerationShapeConfig;Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Beardifying;Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;Lnet/minecraft/world/gen/chunk/AquiferSampler$FluidLevelSampler;Lnet/minecraft/world/gen/chunk/Blender;)V
 
 
- 
- 
Method Details- 
createpublic static ChunkNoiseSampler create(Chunk chunk, NoiseConfig noiseConfig, DensityFunctionTypes.Beardifying beardifying, ChunkGeneratorSettings chunkGeneratorSettings, AquiferSampler.FluidLevelSampler fluidLevelSampler, Blender blender) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho;a(Lddx;Ldhy;Ldhe$c;Ldhp;Ldgw$a;Ldim;)Ldho;- intermediary - method_39543- Lnet/minecraft/class_6568;method_39543(Lnet/minecraft/class_2791;Lnet/minecraft/class_7138;Lnet/minecraft/class_6916$class_7050;Lnet/minecraft/class_5284;Lnet/minecraft/class_6350$class_6565;Lnet/minecraft/class_6748;)Lnet/minecraft/class_6568;- named - create- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;create(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Beardifying;Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;Lnet/minecraft/world/gen/chunk/AquiferSampler$FluidLevelSampler;Lnet/minecraft/world/gen/chunk/Blender;)Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;
 
- 
createMultiNoiseSamplerprotected MultiNoiseUtil.MultiNoiseSampler createMultiNoiseSampler(NoiseRouter noiseRouter, List<MultiNoiseUtil.NoiseHypercube> spawnTarget) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho;a(Ldhq;Ljava/util/List;)Lcnt$f;- intermediary - method_40531- Lnet/minecraft/class_6568;method_40531(Lnet/minecraft/class_6953;Ljava/util/List;)Lnet/minecraft/class_6544$class_6552;- named - createMultiNoiseSampler- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;createMultiNoiseSampler(Lnet/minecraft/world/gen/noise/NoiseRouter;Ljava/util/List;)Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$MultiNoiseSampler;
 
- 
sampleBlockState- Mappings:
- Namespace - Name - Mixin selector - official - e- Ldho;e()Ldcb;- intermediary - method_40536- Lnet/minecraft/class_6568;method_40536()Lnet/minecraft/class_2680;- named - sampleBlockState- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleBlockState()Lnet/minecraft/block/BlockState;
 
- 
blockXpublic int blockX()- Specified by:
- blockXin interface- DensityFunction.NoisePos
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldhd$b;a()I- intermediary - comp_371- Lnet/minecraft/class_6910$class_6912;comp_371()I- named - blockX- Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockX()I
 
- 
blockYpublic int blockY()- Specified by:
- blockYin interface- DensityFunction.NoisePos
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldhd$b;b()I- intermediary - comp_372- Lnet/minecraft/class_6910$class_6912;comp_372()I- named - blockY- Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockY()I
 
- 
blockZpublic int blockZ()- Specified by:
- blockZin interface- DensityFunction.NoisePos
- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldhd$b;c()I- intermediary - comp_373- Lnet/minecraft/class_6910$class_6912;comp_373()I- named - blockZ- Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockZ()I
 
- 
estimateSurfaceHeightpublic int estimateSurfaceHeight(int blockX, int blockZ) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho;a(II)I- intermediary - method_39900- Lnet/minecraft/class_6568;method_39900(II)I- named - estimateSurfaceHeight- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;estimateSurfaceHeight(II)I
 
- 
calculateSurfaceHeightEstimateprivate int calculateSurfaceHeightEstimate(long columnPos) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho;a(J)I- intermediary - method_39899- Lnet/minecraft/class_6568;method_39899(J)I- named - calculateSurfaceHeightEstimate- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;calculateSurfaceHeightEstimate(J)I
 
- 
getBlender- Specified by:
- getBlenderin interface- DensityFunction.NoisePos
- Mappings:
- Namespace - Name - Mixin selector - official - d- Ldhd$b;d()Ldim;- intermediary - method_39327- Lnet/minecraft/class_6910$class_6912;method_39327()Lnet/minecraft/class_6748;- named - getBlender- Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;getBlender()Lnet/minecraft/world/gen/chunk/Blender;
 
- 
sampleDensityprivate void sampleDensity(boolean start, int cellX) Samples the density values for all cells in the chunk with the given X coordinate. This is done for everyinterpolatedfunction.- Parameters:
- start- whether to store the results in the start or end density buffer
- cellX- the current cell X coordinate
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho;a(ZI)V- intermediary - method_40532- Lnet/minecraft/class_6568;method_40532(ZI)V- named - sampleDensity- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleDensity(ZI)V
 
- 
sampleStartDensitypublic void sampleStartDensity()Samples the density values for all cells in the chunk with the first X coordinate. This is done for everyinterpolatedfunction. The resulting density values will be stored in the interpolator's start density buffer.- Mappings:
- Namespace - Name - Mixin selector - official - f- Ldho;f()V- intermediary - method_38336- Lnet/minecraft/class_6568;method_38336()V- named - sampleStartDensity- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleStartDensity()V
 
- 
sampleEndDensitypublic void sampleEndDensity(int cellX) Samples the density values for all cells in the chunk with the given X coordinate. This is done for everyinterpolatedfunction. The resulting density values will be stored in the interpolator's end density buffer.- Parameters:
- cellX- the chunk-local cell X coordinate
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldho;b(I)V- intermediary - method_38339- Lnet/minecraft/class_6568;method_38339(I)V- named - sampleEndDensity- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleEndDensity(I)V
 
- 
atDescription copied from interface:DensityFunction.EachApplierReturns the block position at a specific index of the density array.If you want to manually iterate the array and call DensityFunction.sample(net.minecraft.world.gen.densityfunction.DensityFunction.NoisePos)to set the individual elements in an implementation ofDensityFunction.fill(double[], net.minecraft.world.gen.densityfunction.DensityFunction.EachApplier), this method can be used to get the block position required for that.- Specified by:
- atin interface- DensityFunction.EachApplier
- Returns:
- the block position at a specific index of the density array
- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldho;c(I)Ldho;- intermediary - method_40534- Lnet/minecraft/class_6568;method_40534(I)Lnet/minecraft/class_6568;- named - at- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;at(I)Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;
 
- 
fillFills the density array using a density function.- Specified by:
- fillin interface- DensityFunction.EachApplier
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldhd$a;a([DLdhd;)V- intermediary - method_40478- Lnet/minecraft/class_6910$class_6911;method_40478([DLnet/minecraft/class_6910;)V- named - fill- Lnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction;)V
 
- 
onSampledCellCornerspublic void onSampledCellCorners(int cellY, int cellZ) This should be called when the start and end density buffers are correctly filled for the current cell.This starts the interpolators and fills the cell caches. - Parameters:
- cellY- the chunk-local cell Y coordinate
- cellZ- the chunk-local cell Z coordinate
- Implementation Note:
- For filling the cell caches, thisis used as theEachApplier.
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldho;b(II)V- intermediary - method_38362- Lnet/minecraft/class_6568;method_38362(II)V- named - onSampledCellCorners- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;onSampledCellCorners(II)V
 
- 
interpolateYpublic void interpolateY(int blockY, double deltaY) Interpolates density values on the Y axis for every interpolator.- Parameters:
- blockY- the absolute block Y coordinate
- deltaY- the cell-local block Y coordinate divided by the number of blocks in a cell vertically
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho;a(ID)V- intermediary - method_38337- Lnet/minecraft/class_6568;method_38337(ID)V- named - interpolateY- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateY(ID)V
 
- 
interpolateXpublic void interpolateX(int blockX, double deltaX) Interpolates density values on the X axis for every interpolator.- Parameters:
- blockX- the absolute block X coordinate
- deltaX- the cell-local block X coordinate divided by the number of blocks in a cell horizontally
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldho;b(ID)V- intermediary - method_38349- Lnet/minecraft/class_6568;method_38349(ID)V- named - interpolateX- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateX(ID)V
 
- 
interpolateZpublic void interpolateZ(int blockZ, double deltaZ) Interpolates density values on the Z axis for every interpolator.- Parameters:
- blockZ- the absolute block Z coordinate
- deltaZ- the cell-local block Z coordinate divided by the number of blocks in a cell vertically
- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldho;c(ID)V- intermediary - method_38355- Lnet/minecraft/class_6568;method_38355(ID)V- named - interpolateZ- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateZ(ID)V
 
- 
stopInterpolationpublic void stopInterpolation()Stops the interpolation loop for this chunk.- Mappings:
- Namespace - Name - Mixin selector - official - g- Ldho;g()V- intermediary - method_40537- Lnet/minecraft/class_6568;method_40537()V- named - stopInterpolation- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;stopInterpolation()V
 
- 
swapBufferspublic void swapBuffers()Swaps the start and end density buffers of every interpolator.- Mappings:
- Namespace - Name - Mixin selector - official - h- Ldho;h()V- intermediary - method_38348- Lnet/minecraft/class_6568;method_38348()V- named - swapBuffers- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;swapBuffers()V
 
- 
getAquiferSampler- Mappings:
- Namespace - Name - Mixin selector - official - i- Ldho;i()Ldgw;- intermediary - method_38354- Lnet/minecraft/class_6568;method_38354()Lnet/minecraft/class_6350;- named - getAquiferSampler- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getAquiferSampler()Lnet/minecraft/world/gen/chunk/AquiferSampler;
 
- 
getHorizontalCellBlockCountprotected int getHorizontalCellBlockCount()- Mappings:
- Namespace - Name - Mixin selector - official - j- Ldho;j()I- intermediary - method_42361- Lnet/minecraft/class_6568;method_42361()I- named - getHorizontalCellBlockCount- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getHorizontalCellBlockCount()I
 
- 
getVerticalCellBlockCountprotected int getVerticalCellBlockCount()- Mappings:
- Namespace - Name - Mixin selector - official - k- Ldho;k()I- intermediary - method_42362- Lnet/minecraft/class_6568;method_42362()I- named - getVerticalCellBlockCount- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getVerticalCellBlockCount()I
 
- 
calculateBlendResult- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldho;c(II)Ldim$a;- intermediary - method_40535- Lnet/minecraft/class_6568;method_40535(II)Lnet/minecraft/class_6748$class_6956;- named - calculateBlendResult- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;calculateBlendResult(II)Lnet/minecraft/world/gen/chunk/Blender$BlendResult;
 
- 
getActualDensityFunctionReturns the actual density function for a given density function.The classes in DensityFunctionTypesfor caches, interpolators,blend_alphaandblend_offsetuse simple stub implementations that get replaced with their actual implementation by calling this method.- Parameters:
- function- the density function to get an actual implementation for
- Returns:
- the actual density function for a given density function
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldho;a(Ldhd;)Ldhd;- intermediary - method_40529- Lnet/minecraft/class_6568;method_40529(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;- named - getActualDensityFunction- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getActualDensityFunction(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
 
- 
getActualDensityFunctionImplReturns the actual density function for a given density function.- Returns:
- the actual density function for a given density function
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldho;b(Ldhd;)Ldhd;- intermediary - method_40533- Lnet/minecraft/class_6568;method_40533(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;- named - getActualDensityFunctionImpl- Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getActualDensityFunctionImpl(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
 
 
-