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 named net/minecraft/world/gen/chunk/ChunkNoiseSamplerintermediary net/minecraft/class_6568official eaa
-
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 named generationShapeConfigLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;generationShapeConfig:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;intermediary field_35674Lnet/minecraft/class_6568;field_35674:Lnet/minecraft/class_5309;official aLeaa;a:Leae;
-
horizontalCellCount
final int horizontalCellCount- Mappings:
Namespace Name Mixin selector named horizontalCellCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalCellCount:Iintermediary field_34599Lnet/minecraft/class_6568;field_34599:Iofficial bLeaa;b:I
-
verticalCellCount
final int verticalCellCount- Mappings:
Namespace Name Mixin selector named verticalCellCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;verticalCellCount:Iintermediary field_34598Lnet/minecraft/class_6568;field_34598:Iofficial cLeaa;c:I
-
minimumCellY
final int minimumCellY- Mappings:
Namespace Name Mixin selector named minimumCellYLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;minimumCellY:Iintermediary field_34600Lnet/minecraft/class_6568;field_34600:Iofficial dLeaa;d:I
-
startCellX
private final int startCellX- Mappings:
Namespace Name Mixin selector named startCellXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startCellX:Iintermediary field_34601Lnet/minecraft/class_6568;field_34601:Iofficial eLeaa;e:I
-
startCellZ
private final int startCellZ- Mappings:
Namespace Name Mixin selector named startCellZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startCellZ:Iintermediary field_34602Lnet/minecraft/class_6568;field_34602:Iofficial fLeaa;f:I
-
startBiomeX
final int startBiomeX- Mappings:
Namespace Name Mixin selector named startBiomeXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBiomeX:Iintermediary field_34603Lnet/minecraft/class_6568;field_34603:Iofficial gLeaa;g:I
-
startBiomeZ
final int startBiomeZ- Mappings:
Namespace Name Mixin selector named startBiomeZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBiomeZ:Iintermediary field_34604Lnet/minecraft/class_6568;field_34604:Iofficial hLeaa;h:I
-
interpolators
- Mappings:
Namespace Name Mixin selector named interpolatorsLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolators:Ljava/util/List;intermediary field_34605Lnet/minecraft/class_6568;field_34605:Ljava/util/List;official iLeaa;i:Ljava/util/List;
-
caches
- Mappings:
Namespace Name Mixin selector named cachesLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;caches:Ljava/util/List;intermediary field_36581Lnet/minecraft/class_6568;field_36581:Ljava/util/List;official jLeaa;j:Ljava/util/List;
-
actualDensityFunctionCache
- Mappings:
Namespace Name Mixin selector named actualDensityFunctionCacheLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;actualDensityFunctionCache:Ljava/util/Map;intermediary field_36582Lnet/minecraft/class_6568;field_36582:Ljava/util/Map;official kLeaa;k:Ljava/util/Map;
-
surfaceHeightEstimateCache
- Mappings:
Namespace Name Mixin selector named surfaceHeightEstimateCacheLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;surfaceHeightEstimateCache:Lit/unimi/dsi/fastutil/longs/Long2IntMap;intermediary field_36273Lnet/minecraft/class_6568;field_36273:Lit/unimi/dsi/fastutil/longs/Long2IntMap;official lLeaa;l:Lit/unimi/dsi/fastutil/longs/Long2IntMap;
-
aquiferSampler
- Mappings:
Namespace Name Mixin selector named aquiferSamplerLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;aquiferSampler:Lnet/minecraft/world/gen/chunk/AquiferSampler;intermediary field_34613Lnet/minecraft/class_6568;field_34613:Lnet/minecraft/class_6350;official mLeaa;m:Ldzi;
-
initialDensityWithoutJaggedness
- Mappings:
Namespace Name Mixin selector named initialDensityWithoutJaggednessLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;initialDensityWithoutJaggedness:Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary field_36583Lnet/minecraft/class_6568;field_36583:Lnet/minecraft/class_6910;official nLeaa;n:Ldzp;
-
blockStateSampler
- Mappings:
Namespace Name Mixin selector named blockStateSamplerLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;blockStateSampler:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$BlockStateSampler;intermediary field_36584Lnet/minecraft/class_6568;field_36584:Lnet/minecraft/class_6568$class_6569;official oLeaa;o:Leaa$c;
-
blender
- Mappings:
Namespace Name Mixin selector named blenderLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;blender:Lnet/minecraft/world/gen/chunk/Blender;intermediary field_35487Lnet/minecraft/class_6568;field_35487:Lnet/minecraft/class_6748;official pLeaa;p:Leay;
-
cachedBlendAlphaDensityFunction
- Mappings:
Namespace Name Mixin selector named cachedBlendAlphaDensityFunctionLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cachedBlendAlphaDensityFunction:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;intermediary field_36585Lnet/minecraft/class_6568;field_36585:Lnet/minecraft/class_6568$class_6951;official qLeaa;q:Leaa$g;
-
cachedBlendOffsetDensityFunction
- Mappings:
Namespace Name Mixin selector named cachedBlendOffsetDensityFunctionLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cachedBlendOffsetDensityFunction:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;intermediary field_36586Lnet/minecraft/class_6568;field_36586:Lnet/minecraft/class_6568$class_6951;official rLeaa;r:Leaa$g;
-
beardifying
- Mappings:
Namespace Name Mixin selector named beardifyingLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;beardifying:Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Beardifying;intermediary field_37113Lnet/minecraft/class_6568;field_37113:Lnet/minecraft/class_6916$class_7050;official sLeaa;s:Ldzq$c;
-
lastBlendingColumnPos
private long lastBlendingColumnPos- Mappings:
Namespace Name Mixin selector named lastBlendingColumnPosLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;lastBlendingColumnPos:Jintermediary field_36587Lnet/minecraft/class_6568;field_36587:Jofficial tLeaa;t:J
-
lastBlendingResult
- Mappings:
Namespace Name Mixin selector named lastBlendingResultLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;lastBlendingResult:Lnet/minecraft/world/gen/chunk/Blender$BlendResult;intermediary field_36588Lnet/minecraft/class_6568;field_36588:Lnet/minecraft/class_6748$class_6956;official uLeaa;u:Leay$a;
-
horizontalBiomeEnd
final int horizontalBiomeEnd- Mappings:
Namespace Name Mixin selector named horizontalBiomeEndLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalBiomeEnd:Iintermediary field_36589Lnet/minecraft/class_6568;field_36589:Iofficial vLeaa;v:I
-
horizontalCellBlockCount
final int horizontalCellBlockCount- Mappings:
Namespace Name Mixin selector named horizontalCellBlockCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalCellBlockCount:Iintermediary field_36590Lnet/minecraft/class_6568;field_36590:Iofficial wLeaa;w:I
-
verticalCellBlockCount
final int verticalCellBlockCount- Mappings:
Namespace Name Mixin selector named verticalCellBlockCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;verticalCellBlockCount:Iintermediary field_36591Lnet/minecraft/class_6568;field_36591:Iofficial xLeaa;x:I
-
isInInterpolationLoop
boolean isInInterpolationLoop- Mappings:
Namespace Name Mixin selector named isInInterpolationLoopLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;isInInterpolationLoop:Zintermediary field_36592Lnet/minecraft/class_6568;field_36592:Zofficial yLeaa;y:Z
-
isSamplingForCaches
boolean isSamplingForCaches- Mappings:
Namespace Name Mixin selector named isSamplingForCachesLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;isSamplingForCaches:Zintermediary field_36593Lnet/minecraft/class_6568;field_36593:Zofficial zLeaa;z:Z
-
startBlockX
private int startBlockX- Mappings:
Namespace Name Mixin selector named startBlockXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockX:Iintermediary field_36594Lnet/minecraft/class_6568;field_36594:Iofficial ALeaa;A:I
-
startBlockY
int startBlockY- Mappings:
Namespace Name Mixin selector named startBlockYLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockY:Iintermediary field_36572Lnet/minecraft/class_6568;field_36572:Iofficial BLeaa;B:I
-
startBlockZ
private int startBlockZ- Mappings:
Namespace Name Mixin selector named startBlockZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockZ:Iintermediary field_36573Lnet/minecraft/class_6568;field_36573:Iofficial CLeaa;C:I
-
cellBlockX
int cellBlockX- Mappings:
Namespace Name Mixin selector named cellBlockXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockX:Iintermediary field_36574Lnet/minecraft/class_6568;field_36574:Iofficial DLeaa;D:I
-
cellBlockY
int cellBlockY- Mappings:
Namespace Name Mixin selector named cellBlockYLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockY:Iintermediary field_36575Lnet/minecraft/class_6568;field_36575:Iofficial ELeaa;E:I
-
cellBlockZ
int cellBlockZ- Mappings:
Namespace Name Mixin selector named cellBlockZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockZ:Iintermediary field_36576Lnet/minecraft/class_6568;field_36576:Iofficial FLeaa;F:I
-
sampleUniqueIndex
long sampleUniqueIndex- Mappings:
Namespace Name Mixin selector named sampleUniqueIndexLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleUniqueIndex:Jintermediary field_36577Lnet/minecraft/class_6568;field_36577:Jofficial GLeaa;G:J
-
cacheOnceUniqueIndex
long cacheOnceUniqueIndex- Mappings:
Namespace Name Mixin selector named cacheOnceUniqueIndexLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cacheOnceUniqueIndex:Jintermediary field_36578Lnet/minecraft/class_6568;field_36578:Jofficial HLeaa;H:J
-
index
int index- Mappings:
Namespace Name Mixin selector named indexLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;index:Iintermediary field_36579Lnet/minecraft/class_6568;field_36579:Iofficial ILeaa;I: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 named interpolationEachApplierLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolationEachApplier:Lnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;intermediary field_36580Lnet/minecraft/class_6568;field_36580:Lnet/minecraft/class_6910$class_6911;official JLeaa;J:Ldzp$a;
-
-
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 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;)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;)Vofficial <init>Leaa;<init>(ILeak;IILeae;Ldzq$c;Leab;Ldzi$a;Leay;)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 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;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;official aLeaa;a(Ldvw;Leak;Ldzq$c;Leab;Ldzi$a;Leay;)Leaa;
-
createMultiNoiseSampler
protected MultiNoiseUtil.MultiNoiseSampler createMultiNoiseSampler(NoiseRouter noiseRouter, List<MultiNoiseUtil.NoiseHypercube> spawnTarget) - Mappings:
Namespace Name Mixin selector 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;intermediary method_40531Lnet/minecraft/class_6568;method_40531(Lnet/minecraft/class_6953;Ljava/util/List;)Lnet/minecraft/class_6544$class_6552;official aLeaa;a(Leac;Ljava/util/List;)Ldfc$f;
-
sampleBlockState
- Mappings:
Namespace Name Mixin selector named sampleBlockStateLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleBlockState()Lnet/minecraft/block/BlockState;intermediary method_40536Lnet/minecraft/class_6568;method_40536()Lnet/minecraft/class_2680;official eLeaa;e()Ldua;
-
blockX
public int blockX()- Specified by:
blockXin interfaceDensityFunction.NoisePos- Mappings:
Namespace Name Mixin selector named blockXLnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockX()Iintermediary comp_371Lnet/minecraft/class_6910$class_6912;comp_371()Iofficial aLdzp$b;a()I
-
blockY
public int blockY()- Specified by:
blockYin interfaceDensityFunction.NoisePos- Mappings:
Namespace Name Mixin selector named blockYLnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockY()Iintermediary comp_372Lnet/minecraft/class_6910$class_6912;comp_372()Iofficial bLdzp$b;b()I
-
blockZ
public int blockZ()- Specified by:
blockZin interfaceDensityFunction.NoisePos- Mappings:
Namespace Name Mixin selector named blockZLnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockZ()Iintermediary comp_373Lnet/minecraft/class_6910$class_6912;comp_373()Iofficial cLdzp$b;c()I
-
estimateSurfaceHeight
public int estimateSurfaceHeight(int blockX, int blockZ) - Mappings:
Namespace Name Mixin selector named estimateSurfaceHeightLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;estimateSurfaceHeight(II)Iintermediary method_39900Lnet/minecraft/class_6568;method_39900(II)Iofficial aLeaa;a(II)I
-
calculateSurfaceHeightEstimate
private int calculateSurfaceHeightEstimate(long columnPos) - Mappings:
Namespace Name Mixin selector named calculateSurfaceHeightEstimateLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;calculateSurfaceHeightEstimate(J)Iintermediary method_39899Lnet/minecraft/class_6568;method_39899(J)Iofficial aLeaa;a(J)I
-
getBlender
- Specified by:
getBlenderin interfaceDensityFunction.NoisePos- Mappings:
Namespace Name Mixin selector named getBlenderLnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;getBlender()Lnet/minecraft/world/gen/chunk/Blender;intermediary method_39327Lnet/minecraft/class_6910$class_6912;method_39327()Lnet/minecraft/class_6748;official dLdzp$b;d()Leay;
-
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 named sampleDensityLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleDensity(ZI)Vintermediary method_40532Lnet/minecraft/class_6568;method_40532(ZI)Vofficial aLeaa;a(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 named sampleStartDensityLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleStartDensity()Vintermediary method_38336Lnet/minecraft/class_6568;method_38336()Vofficial fLeaa;f()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 named sampleEndDensityLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleEndDensity(I)Vintermediary method_38339Lnet/minecraft/class_6568;method_38339(I)Vofficial bLeaa;b(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 named atLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;at(I)Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;intermediary method_40534Lnet/minecraft/class_6568;method_40534(I)Lnet/minecraft/class_6568;official cLeaa;c(I)Leaa;
-
fill
Fills the density array using a density function.- Specified by:
fillin interfaceDensityFunction.EachApplier- Implementation Note:
- This can have side effects.
- Mappings:
Namespace Name Mixin selector named fillLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction;)Vintermediary method_40478Lnet/minecraft/class_6910$class_6911;method_40478([DLnet/minecraft/class_6910;)Vofficial aLdzp$a;a([DLdzp;)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 named onSampledCellCornersLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;onSampledCellCorners(II)Vintermediary method_38362Lnet/minecraft/class_6568;method_38362(II)Vofficial bLeaa;b(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 named interpolateYLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateY(ID)Vintermediary method_38337Lnet/minecraft/class_6568;method_38337(ID)Vofficial aLeaa;a(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 named interpolateXLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateX(ID)Vintermediary method_38349Lnet/minecraft/class_6568;method_38349(ID)Vofficial bLeaa;b(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 named interpolateZLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateZ(ID)Vintermediary method_38355Lnet/minecraft/class_6568;method_38355(ID)Vofficial cLeaa;c(ID)V
-
stopInterpolation
public void stopInterpolation()Stops the interpolation loop for this chunk.- Mappings:
Namespace Name Mixin selector named stopInterpolationLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;stopInterpolation()Vintermediary method_40537Lnet/minecraft/class_6568;method_40537()Vofficial gLeaa;g()V
-
swapBuffers
public void swapBuffers()Swaps the start and end density buffers of every interpolator.- Mappings:
Namespace Name Mixin selector named swapBuffersLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;swapBuffers()Vintermediary method_38348Lnet/minecraft/class_6568;method_38348()Vofficial hLeaa;h()V
-
getAquiferSampler
- Mappings:
Namespace Name Mixin selector named getAquiferSamplerLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getAquiferSampler()Lnet/minecraft/world/gen/chunk/AquiferSampler;intermediary method_38354Lnet/minecraft/class_6568;method_38354()Lnet/minecraft/class_6350;official iLeaa;i()Ldzi;
-
getHorizontalCellBlockCount
protected int getHorizontalCellBlockCount()- Mappings:
Namespace Name Mixin selector named getHorizontalCellBlockCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getHorizontalCellBlockCount()Iintermediary method_42361Lnet/minecraft/class_6568;method_42361()Iofficial jLeaa;j()I
-
getVerticalCellBlockCount
protected int getVerticalCellBlockCount()- Mappings:
Namespace Name Mixin selector named getVerticalCellBlockCountLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getVerticalCellBlockCount()Iintermediary method_42362Lnet/minecraft/class_6568;method_42362()Iofficial kLeaa;k()I
-
calculateBlendResult
- Mappings:
Namespace Name Mixin selector named calculateBlendResultLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;calculateBlendResult(II)Lnet/minecraft/world/gen/chunk/Blender$BlendResult;intermediary method_40535Lnet/minecraft/class_6568;method_40535(II)Lnet/minecraft/class_6748$class_6956;official cLeaa;c(II)Leay$a;
-
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 named getActualDensityFunctionLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getActualDensityFunction(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary method_40529Lnet/minecraft/class_6568;method_40529(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;official aLeaa;a(Ldzp;)Ldzp;
-
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 named getActualDensityFunctionImplLnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getActualDensityFunctionImpl(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary method_40533Lnet/minecraft/class_6568;method_40533(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;official bLeaa;b(Ldzp;)Ldzp;
-