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 dhlintermediary net/minecraft/class_6568named net/minecraft/world/gen/chunk/ChunkNoiseSampler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classstatic interfaceprivate static classprivate classprivate classclassprivate classprivate static interface -
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionChunkNoiseSampler(int horizontalCellCount, NoiseConfig noiseConfig, int startBlockX, int startBlockZ, GenerationShapeConfig generationShapeConfig, DensityFunctionTypes.Beardifying beardifying, ChunkGeneratorSettings chunkGeneratorSettings, AquiferSampler.FluidLevelSampler fluidLevelSampler, Blender blender) -
Method Summary
Modifier 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 aLdhl;a:Ldhp;intermediary field_35674Lnet/minecraft/class_6568;field_35674:Lnet/minecraft/class_5309;named generationShapeConfigLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;generationShapeConfig:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
-
horizontalCellCount
final int horizontalCellCount- Mappings:
Namespace Name Mixin selector official bLdhl;b:Iintermediary field_34599Lnet/minecraft/class_6568;field_34599:Inamed horizontalCellCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalCellCount:I
-
verticalCellCount
final int verticalCellCount- Mappings:
Namespace Name Mixin selector official cLdhl;c:Iintermediary field_34598Lnet/minecraft/class_6568;field_34598:Inamed verticalCellCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;verticalCellCount:I
-
minimumCellY
final int minimumCellY- Mappings:
Namespace Name Mixin selector official dLdhl;d:Iintermediary field_34600Lnet/minecraft/class_6568;field_34600:Inamed minimumCellYLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;minimumCellY:I
-
startCellX
private final int startCellX- Mappings:
Namespace Name Mixin selector official eLdhl;e:Iintermediary field_34601Lnet/minecraft/class_6568;field_34601:Inamed startCellXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startCellX:I
-
startCellZ
private final int startCellZ- Mappings:
Namespace Name Mixin selector official fLdhl;f:Iintermediary field_34602Lnet/minecraft/class_6568;field_34602:Inamed startCellZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startCellZ:I
-
startBiomeX
final int startBiomeX- Mappings:
Namespace Name Mixin selector official gLdhl;g:Iintermediary field_34603Lnet/minecraft/class_6568;field_34603:Inamed startBiomeXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBiomeX:I
-
startBiomeZ
final int startBiomeZ- Mappings:
Namespace Name Mixin selector official hLdhl;h:Iintermediary field_34604Lnet/minecraft/class_6568;field_34604:Inamed startBiomeZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBiomeZ:I
-
interpolators
- Mappings:
Namespace Name Mixin selector official iLdhl;i:Ljava/util/List;intermediary field_34605Lnet/minecraft/class_6568;field_34605:Ljava/util/List;named interpolatorsLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolators:Ljava/util/List;
-
caches
- Mappings:
Namespace Name Mixin selector official jLdhl;j:Ljava/util/List;intermediary field_36581Lnet/minecraft/class_6568;field_36581:Ljava/util/List;named cachesLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;caches:Ljava/util/List;
-
actualDensityFunctionCache
- Mappings:
Namespace Name Mixin selector official kLdhl;k:Ljava/util/Map;intermediary field_36582Lnet/minecraft/class_6568;field_36582:Ljava/util/Map;named actualDensityFunctionCacheLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;actualDensityFunctionCache:Ljava/util/Map;
-
surfaceHeightEstimateCache
- Mappings:
Namespace Name Mixin selector official lLdhl;l:Lit/unimi/dsi/fastutil/longs/Long2IntMap;intermediary field_36273Lnet/minecraft/class_6568;field_36273:Lit/unimi/dsi/fastutil/longs/Long2IntMap;named surfaceHeightEstimateCacheLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;surfaceHeightEstimateCache:Lit/unimi/dsi/fastutil/longs/Long2IntMap;
-
aquiferSampler
- Mappings:
Namespace Name Mixin selector official mLdhl;m:Ldgt;intermediary field_34613Lnet/minecraft/class_6568;field_34613:Lnet/minecraft/class_6350;named aquiferSamplerLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;aquiferSampler:Lnet/minecraft/world/gen/chunk/AquiferSampler;
-
initialDensityWithoutJaggedness
- Mappings:
Namespace Name Mixin selector official nLdhl;n:Ldha;intermediary field_36583Lnet/minecraft/class_6568;field_36583:Lnet/minecraft/class_6910;named initialDensityWithoutJaggednessLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;initialDensityWithoutJaggedness:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
blockStateSampler
- Mappings:
Namespace Name Mixin selector official oLdhl;o:Ldhl$c;intermediary field_36584Lnet/minecraft/class_6568;field_36584:Lnet/minecraft/class_6568$class_6569;named blockStateSamplerLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;blockStateSampler:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$BlockStateSampler;
-
blender
- Mappings:
Namespace Name Mixin selector official pLdhl;p:Ldij;intermediary field_35487Lnet/minecraft/class_6568;field_35487:Lnet/minecraft/class_6748;named blenderLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;blender:Lnet/minecraft/world/gen/chunk/Blender;
-
cachedBlendAlphaDensityFunction
- Mappings:
Namespace Name Mixin selector official qLdhl;q:Ldhl$g;intermediary field_36585Lnet/minecraft/class_6568;field_36585:Lnet/minecraft/class_6568$class_6951;named cachedBlendAlphaDensityFunctionLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cachedBlendAlphaDensityFunction:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;
-
cachedBlendOffsetDensityFunction
- Mappings:
Namespace Name Mixin selector official rLdhl;r:Ldhl$g;intermediary field_36586Lnet/minecraft/class_6568;field_36586:Lnet/minecraft/class_6568$class_6951;named cachedBlendOffsetDensityFunctionLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cachedBlendOffsetDensityFunction:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;
-
beardifying
- Mappings:
Namespace Name Mixin selector official sLdhl;s:Ldhb$c;intermediary field_37113Lnet/minecraft/class_6568;field_37113:Lnet/minecraft/class_6916$class_7050;named beardifyingLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;beardifying:Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Beardifying;
-
lastBlendingColumnPos
private long lastBlendingColumnPos- Mappings:
Namespace Name Mixin selector official tLdhl;t:Jintermediary field_36587Lnet/minecraft/class_6568;field_36587:Jnamed lastBlendingColumnPosLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;lastBlendingColumnPos:J
-
lastBlendingResult
- Mappings:
Namespace Name Mixin selector official uLdhl;u:Ldij$a;intermediary field_36588Lnet/minecraft/class_6568;field_36588:Lnet/minecraft/class_6748$class_6956;named lastBlendingResultLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;lastBlendingResult:Lnet/minecraft/world/gen/chunk/Blender$BlendResult;
-
horizontalBiomeEnd
final int horizontalBiomeEnd- Mappings:
Namespace Name Mixin selector official vLdhl;v:Iintermediary field_36589Lnet/minecraft/class_6568;field_36589:Inamed horizontalBiomeEndLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalBiomeEnd:I
-
horizontalCellBlockCount
final int horizontalCellBlockCount- Mappings:
Namespace Name Mixin selector official wLdhl;w:Iintermediary field_36590Lnet/minecraft/class_6568;field_36590:Inamed horizontalCellBlockCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalCellBlockCount:I
-
verticalCellBlockCount
final int verticalCellBlockCount- Mappings:
Namespace Name Mixin selector official xLdhl;x:Iintermediary field_36591Lnet/minecraft/class_6568;field_36591:Inamed verticalCellBlockCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;verticalCellBlockCount:I
-
isInInterpolationLoop
boolean isInInterpolationLoop- Mappings:
Namespace Name Mixin selector official yLdhl;y:Zintermediary field_36592Lnet/minecraft/class_6568;field_36592:Znamed isInInterpolationLoopLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;isInInterpolationLoop:Z
-
isSamplingForCaches
boolean isSamplingForCaches- Mappings:
Namespace Name Mixin selector official zLdhl;z:Zintermediary field_36593Lnet/minecraft/class_6568;field_36593:Znamed isSamplingForCachesLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;isSamplingForCaches:Z
-
startBlockX
private int startBlockX- Mappings:
Namespace Name Mixin selector official ALdhl;A:Iintermediary field_36594Lnet/minecraft/class_6568;field_36594:Inamed startBlockXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockX:I
-
startBlockY
int startBlockY- Mappings:
Namespace Name Mixin selector official BLdhl;B:Iintermediary field_36572Lnet/minecraft/class_6568;field_36572:Inamed startBlockYLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockY:I
-
startBlockZ
private int startBlockZ- Mappings:
Namespace Name Mixin selector official CLdhl;C:Iintermediary field_36573Lnet/minecraft/class_6568;field_36573:Inamed startBlockZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockZ:I
-
cellBlockX
int cellBlockX- Mappings:
Namespace Name Mixin selector official DLdhl;D:Iintermediary field_36574Lnet/minecraft/class_6568;field_36574:Inamed cellBlockXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockX:I
-
cellBlockY
int cellBlockY- Mappings:
Namespace Name Mixin selector official ELdhl;E:Iintermediary field_36575Lnet/minecraft/class_6568;field_36575:Inamed cellBlockYLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockY:I
-
cellBlockZ
int cellBlockZ- Mappings:
Namespace Name Mixin selector official FLdhl;F:Iintermediary field_36576Lnet/minecraft/class_6568;field_36576:Inamed cellBlockZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockZ:I
-
sampleUniqueIndex
long sampleUniqueIndex- Mappings:
Namespace Name Mixin selector official GLdhl;G:Jintermediary field_36577Lnet/minecraft/class_6568;field_36577:Jnamed sampleUniqueIndexLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleUniqueIndex:J
-
cacheOnceUniqueIndex
long cacheOnceUniqueIndex- Mappings:
Namespace Name Mixin selector official HLdhl;H:Jintermediary field_36578Lnet/minecraft/class_6568;field_36578:Jnamed cacheOnceUniqueIndexLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cacheOnceUniqueIndex:J
-
index
int index- Mappings:
Namespace Name Mixin selector official ILdhl;I:Iintermediary field_36579Lnet/minecraft/class_6568;field_36579:Inamed indexLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;index:I
-
interpolationEachApplier
The 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 JLdhl;J:Ldha$a;intermediary field_36580Lnet/minecraft/class_6568;field_36580:Lnet/minecraft/class_6910$class_6911;named interpolationEachApplierLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolationEachApplier:Lnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;
-
-
Constructor Details
-
ChunkNoiseSampler
public 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>Ldhl;<init>(ILdhv;IILdhp;Ldhb$c;Ldhm;Ldgt$a;Ldij;)Vintermediary <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;)Vnamed <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
-
create
public static ChunkNoiseSampler create(Chunk chunk, NoiseConfig noiseConfig, DensityFunctionTypes.Beardifying beardifying, ChunkGeneratorSettings chunkGeneratorSettings, AquiferSampler.FluidLevelSampler fluidLevelSampler, Blender blender) - Mappings:
Namespace Name Mixin selector official aLdhl;a(Lddu;Ldhv;Ldhb$c;Ldhm;Ldgt$a;Ldij;)Ldhl;intermediary method_39543Lnet/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 createLnet/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;
-
createMultiNoiseSampler
protected MultiNoiseUtil.MultiNoiseSampler createMultiNoiseSampler(NoiseRouter noiseRouter, List<MultiNoiseUtil.NoiseHypercube> spawnTarget) - Mappings:
Namespace Name Mixin selector official aLdhl;a(Ldhn;Ljava/util/List;)Lcnr$f;intermediary method_40531Lnet/minecraft/class_6568;method_40531(Lnet/minecraft/class_6953;Ljava/util/List;)Lnet/minecraft/class_6544$class_6552;named createMultiNoiseSamplerLnet/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 eLdhl;e()Ldby;intermediary method_40536Lnet/minecraft/class_6568;method_40536()Lnet/minecraft/class_2680;named sampleBlockStateLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleBlockState()Lnet/minecraft/block/BlockState;
-
blockX
public int blockX()- Specified by:
blockXin interfaceDensityFunction.NoisePos- Mappings:
Namespace Name Mixin selector official aLdha$b;a()Iintermediary comp_371Lnet/minecraft/class_6910$class_6912;comp_371()Inamed blockXLnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockX()I
-
blockY
public int blockY()- Specified by:
blockYin interfaceDensityFunction.NoisePos- Mappings:
Namespace Name Mixin selector official bLdha$b;b()Iintermediary comp_372Lnet/minecraft/class_6910$class_6912;comp_372()Inamed blockYLnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockY()I
-
blockZ
public int blockZ()- Specified by:
blockZin interfaceDensityFunction.NoisePos- Mappings:
Namespace Name Mixin selector official cLdha$b;c()Iintermediary comp_373Lnet/minecraft/class_6910$class_6912;comp_373()Inamed blockZLnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockZ()I
-
estimateSurfaceHeight
public int estimateSurfaceHeight(int blockX, int blockZ) - Mappings:
Namespace Name Mixin selector official aLdhl;a(II)Iintermediary method_39900Lnet/minecraft/class_6568;method_39900(II)Inamed estimateSurfaceHeightLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;estimateSurfaceHeight(II)I
-
calculateSurfaceHeightEstimate
private int calculateSurfaceHeightEstimate(long columnPos) - Mappings:
Namespace Name Mixin selector official aLdhl;a(J)Iintermediary method_39899Lnet/minecraft/class_6568;method_39899(J)Inamed calculateSurfaceHeightEstimateLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;calculateSurfaceHeightEstimate(J)I
-
getBlender
- Specified by:
getBlenderin interfaceDensityFunction.NoisePos- Mappings:
Namespace Name Mixin selector official dLdha$b;d()Ldij;intermediary method_39327Lnet/minecraft/class_6910$class_6912;method_39327()Lnet/minecraft/class_6748;named getBlenderLnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;getBlender()Lnet/minecraft/world/gen/chunk/Blender;
-
sampleDensity
private 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 buffercellX- the current cell X coordinate- Mappings:
Namespace Name Mixin selector official aLdhl;a(ZI)Vintermediary method_40532Lnet/minecraft/class_6568;method_40532(ZI)Vnamed sampleDensityLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleDensity(ZI)V
-
sampleStartDensity
public 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 fLdhl;f()Vintermediary method_38336Lnet/minecraft/class_6568;method_38336()Vnamed sampleStartDensityLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleStartDensity()V
-
sampleEndDensity
public 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 bLdhl;b(I)Vintermediary method_38339Lnet/minecraft/class_6568;method_38339(I)Vnamed sampleEndDensityLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleEndDensity(I)V
-
at
Description 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 interfaceDensityFunction.EachApplier- Returns:
- the block position at a specific index of the density array
- Mappings:
Namespace Name Mixin selector official cLdhl;c(I)Ldhl;intermediary method_40534Lnet/minecraft/class_6568;method_40534(I)Lnet/minecraft/class_6568;named atLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;at(I)Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;
-
fill
Fills the density array using a density function.- Specified by:
fillin interfaceDensityFunction.EachApplier- Mappings:
Namespace Name Mixin selector official aLdha$a;a([DLdha;)Vintermediary method_40478Lnet/minecraft/class_6910$class_6911;method_40478([DLnet/minecraft/class_6910;)Vnamed fillLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction;)V
-
onSampledCellCorners
public 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 coordinatecellZ- the chunk-local cell Z coordinate- Implementation Note:
- For filling the cell caches,
thisis used as theEachApplier. - Mappings:
Namespace Name Mixin selector official bLdhl;b(II)Vintermediary method_38362Lnet/minecraft/class_6568;method_38362(II)Vnamed onSampledCellCornersLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;onSampledCellCorners(II)V
-
interpolateY
public void interpolateY(int blockY, double deltaY) Interpolates density values on the Y axis for every interpolator.- Parameters:
blockY- the absolute block Y coordinatedeltaY- the cell-local block Y coordinate divided by the number of blocks in a cell vertically- Mappings:
Namespace Name Mixin selector official aLdhl;a(ID)Vintermediary method_38337Lnet/minecraft/class_6568;method_38337(ID)Vnamed interpolateYLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateY(ID)V
-
interpolateX
public void interpolateX(int blockX, double deltaX) Interpolates density values on the X axis for every interpolator.- Parameters:
blockX- the absolute block X coordinatedeltaX- the cell-local block X coordinate divided by the number of blocks in a cell horizontally- Mappings:
Namespace Name Mixin selector official bLdhl;b(ID)Vintermediary method_38349Lnet/minecraft/class_6568;method_38349(ID)Vnamed interpolateXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateX(ID)V
-
interpolateZ
public void interpolateZ(int blockZ, double deltaZ) Interpolates density values on the Z axis for every interpolator.- Parameters:
blockZ- the absolute block Z coordinatedeltaZ- the cell-local block Z coordinate divided by the number of blocks in a cell vertically- Mappings:
Namespace Name Mixin selector official cLdhl;c(ID)Vintermediary method_38355Lnet/minecraft/class_6568;method_38355(ID)Vnamed interpolateZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateZ(ID)V
-
stopInterpolation
public void stopInterpolation()Stops the interpolation loop for this chunk.- Mappings:
Namespace Name Mixin selector official gLdhl;g()Vintermediary method_40537Lnet/minecraft/class_6568;method_40537()Vnamed stopInterpolationLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;stopInterpolation()V
-
swapBuffers
public void swapBuffers()Swaps the start and end density buffers of every interpolator.- Mappings:
Namespace Name Mixin selector official hLdhl;h()Vintermediary method_38348Lnet/minecraft/class_6568;method_38348()Vnamed swapBuffersLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;swapBuffers()V
-
getAquiferSampler
- Mappings:
Namespace Name Mixin selector official iLdhl;i()Ldgt;intermediary method_38354Lnet/minecraft/class_6568;method_38354()Lnet/minecraft/class_6350;named getAquiferSamplerLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getAquiferSampler()Lnet/minecraft/world/gen/chunk/AquiferSampler;
-
getHorizontalCellBlockCount
protected int getHorizontalCellBlockCount()- Mappings:
Namespace Name Mixin selector official jLdhl;j()Iintermediary method_42361Lnet/minecraft/class_6568;method_42361()Inamed getHorizontalCellBlockCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getHorizontalCellBlockCount()I
-
getVerticalCellBlockCount
protected int getVerticalCellBlockCount()- Mappings:
Namespace Name Mixin selector official kLdhl;k()Iintermediary method_42362Lnet/minecraft/class_6568;method_42362()Inamed getVerticalCellBlockCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getVerticalCellBlockCount()I
-
calculateBlendResult
- Mappings:
Namespace Name Mixin selector official cLdhl;c(II)Ldij$a;intermediary method_40535Lnet/minecraft/class_6568;method_40535(II)Lnet/minecraft/class_6748$class_6956;named calculateBlendResultLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;calculateBlendResult(II)Lnet/minecraft/world/gen/chunk/Blender$BlendResult;
-
getActualDensityFunction
Returns 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 aLdhl;a(Ldha;)Ldha;intermediary method_40529Lnet/minecraft/class_6568;method_40529(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named getActualDensityFunctionLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getActualDensityFunction(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
getActualDensityFunctionImpl
Returns 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 bLdhl;b(Ldha;)Ldha;intermediary method_40533Lnet/minecraft/class_6568;method_40533(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named getActualDensityFunctionImplLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getActualDensityFunctionImpl(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-