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/ChunkNoiseSampler
intermediary net/minecraft/class_6568
official dya
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
static interface
private static class
private class
private class
class
private class
private static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map
<DensityFunction, DensityFunction> private final AquiferSampler
private final DensityFunctionTypes.Beardifying
private final Blender
private final ChunkNoiseSampler.BlockStateSampler
private final ChunkNoiseSampler.FlatCache
private final ChunkNoiseSampler.FlatCache
(package private) long
(package private) final List
<ChunkNoiseSampler.CellCache> (package private) int
(package private) int
(package private) int
private final GenerationShapeConfig
(package private) final int
(package private) final int
(package private) final int
(package private) int
private final DensityFunction
private final DensityFunction.EachApplier
The implementation ofEachApplier
that is used for filling the interpolators' density buffers.(package private) final List
<ChunkNoiseSampler.DensityInterpolator> (package private) boolean
(package private) boolean
private long
private Blender.BlendResult
(package private) final int
(package private) long
(package private) final int
(package private) final int
private int
(package private) int
private int
private final int
private final int
private final Long2IntMap
(package private) final int
(package private) final int
-
Constructor Summary
ConstructorDescriptionChunkNoiseSampler
(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.int
blockX()
int
blockY()
int
blockZ()
(package private) Blender.BlendResult
calculateBlendResult
(int blockX, int blockZ) private int
calculateSurfaceHeightEstimate
(long columnPos) static ChunkNoiseSampler
create
(Chunk chunk, NoiseConfig noiseConfig, DensityFunctionTypes.Beardifying beardifying, ChunkGeneratorSettings chunkGeneratorSettings, AquiferSampler.FluidLevelSampler fluidLevelSampler, Blender blender) protected MultiNoiseUtil.MultiNoiseSampler
createMultiNoiseSampler
(NoiseRouter noiseRouter, List<MultiNoiseUtil.NoiseHypercube> spawnTarget) int
estimateSurfaceHeight
(int blockX, int blockZ) void
fill
(double[] densities, DensityFunction densityFunction) Fills the density array using a density function.protected DensityFunction
getActualDensityFunction
(DensityFunction function) Returns the actual density function for a given density function.private DensityFunction
getActualDensityFunctionImpl
(DensityFunction function) Returns the actual density function for a given density function.protected int
protected int
void
interpolateX
(int blockX, double deltaX) Interpolates density values on the X axis for every interpolator.void
interpolateY
(int blockY, double deltaY) Interpolates density values on the Y axis for every interpolator.void
interpolateZ
(int blockZ, double deltaZ) Interpolates density values on the Z axis for every interpolator.void
onSampledCellCorners
(int cellY, int cellZ) This should be called when the start and end density buffers are correctly filled for the current cell.protected @Nullable BlockState
private void
sampleDensity
(boolean start, int cellX) Samples the density values for all cells in the chunk with the given X coordinate.void
sampleEndDensity
(int cellX) Samples the density values for all cells in the chunk with the given X coordinate.void
Samples the density values for all cells in the chunk with the first X coordinate.void
Stops the interpolation loop for this chunk.void
Swaps the start and end density buffers of every interpolator.
-
Field Details
-
generationShapeConfig
- Mappings:
Namespace Name Mixin selector named generationShapeConfig
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;generationShapeConfig:Lnet/minecraft/world/gen/chunk/GenerationShapeConfig;
intermediary field_35674
Lnet/minecraft/class_6568;field_35674:Lnet/minecraft/class_5309;
official a
Ldya;a:Ldye;
-
horizontalCellCount
final int horizontalCellCount- Mappings:
Namespace Name Mixin selector named horizontalCellCount
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalCellCount:I
intermediary field_34599
Lnet/minecraft/class_6568;field_34599:I
official b
Ldya;b:I
-
verticalCellCount
final int verticalCellCount- Mappings:
Namespace Name Mixin selector named verticalCellCount
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;verticalCellCount:I
intermediary field_34598
Lnet/minecraft/class_6568;field_34598:I
official c
Ldya;c:I
-
minimumCellY
final int minimumCellY- Mappings:
Namespace Name Mixin selector named minimumCellY
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;minimumCellY:I
intermediary field_34600
Lnet/minecraft/class_6568;field_34600:I
official d
Ldya;d:I
-
startCellX
private final int startCellX- Mappings:
Namespace Name Mixin selector named startCellX
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startCellX:I
intermediary field_34601
Lnet/minecraft/class_6568;field_34601:I
official e
Ldya;e:I
-
startCellZ
private final int startCellZ- Mappings:
Namespace Name Mixin selector named startCellZ
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startCellZ:I
intermediary field_34602
Lnet/minecraft/class_6568;field_34602:I
official f
Ldya;f:I
-
startBiomeX
final int startBiomeX- Mappings:
Namespace Name Mixin selector named startBiomeX
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBiomeX:I
intermediary field_34603
Lnet/minecraft/class_6568;field_34603:I
official g
Ldya;g:I
-
startBiomeZ
final int startBiomeZ- Mappings:
Namespace Name Mixin selector named startBiomeZ
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBiomeZ:I
intermediary field_34604
Lnet/minecraft/class_6568;field_34604:I
official h
Ldya;h:I
-
interpolators
- Mappings:
Namespace Name Mixin selector named interpolators
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolators:Ljava/util/List;
intermediary field_34605
Lnet/minecraft/class_6568;field_34605:Ljava/util/List;
official i
Ldya;i:Ljava/util/List;
-
caches
- Mappings:
Namespace Name Mixin selector named caches
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;caches:Ljava/util/List;
intermediary field_36581
Lnet/minecraft/class_6568;field_36581:Ljava/util/List;
official j
Ldya;j:Ljava/util/List;
-
actualDensityFunctionCache
- Mappings:
Namespace Name Mixin selector named actualDensityFunctionCache
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;actualDensityFunctionCache:Ljava/util/Map;
intermediary field_36582
Lnet/minecraft/class_6568;field_36582:Ljava/util/Map;
official k
Ldya;k:Ljava/util/Map;
-
surfaceHeightEstimateCache
- Mappings:
Namespace Name Mixin selector named surfaceHeightEstimateCache
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;surfaceHeightEstimateCache:Lit/unimi/dsi/fastutil/longs/Long2IntMap;
intermediary field_36273
Lnet/minecraft/class_6568;field_36273:Lit/unimi/dsi/fastutil/longs/Long2IntMap;
official l
Ldya;l:Lit/unimi/dsi/fastutil/longs/Long2IntMap;
-
aquiferSampler
- Mappings:
Namespace Name Mixin selector named aquiferSampler
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;aquiferSampler:Lnet/minecraft/world/gen/chunk/AquiferSampler;
intermediary field_34613
Lnet/minecraft/class_6568;field_34613:Lnet/minecraft/class_6350;
official m
Ldya;m:Ldxi;
-
initialDensityWithoutJaggedness
- Mappings:
Namespace Name Mixin selector named initialDensityWithoutJaggedness
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;initialDensityWithoutJaggedness:Lnet/minecraft/world/gen/densityfunction/DensityFunction;
intermediary field_36583
Lnet/minecraft/class_6568;field_36583:Lnet/minecraft/class_6910;
official n
Ldya;n:Ldxp;
-
blockStateSampler
- Mappings:
Namespace Name Mixin selector named blockStateSampler
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;blockStateSampler:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$BlockStateSampler;
intermediary field_36584
Lnet/minecraft/class_6568;field_36584:Lnet/minecraft/class_6568$class_6569;
official o
Ldya;o:Ldya$c;
-
blender
- Mappings:
Namespace Name Mixin selector named blender
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;blender:Lnet/minecraft/world/gen/chunk/Blender;
intermediary field_35487
Lnet/minecraft/class_6568;field_35487:Lnet/minecraft/class_6748;
official p
Ldya;p:Ldyy;
-
cachedBlendAlphaDensityFunction
- Mappings:
Namespace Name Mixin selector named cachedBlendAlphaDensityFunction
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cachedBlendAlphaDensityFunction:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;
intermediary field_36585
Lnet/minecraft/class_6568;field_36585:Lnet/minecraft/class_6568$class_6951;
official q
Ldya;q:Ldya$g;
-
cachedBlendOffsetDensityFunction
- Mappings:
Namespace Name Mixin selector named cachedBlendOffsetDensityFunction
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cachedBlendOffsetDensityFunction:Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler$FlatCache;
intermediary field_36586
Lnet/minecraft/class_6568;field_36586:Lnet/minecraft/class_6568$class_6951;
official r
Ldya;r:Ldya$g;
-
beardifying
- Mappings:
Namespace Name Mixin selector named beardifying
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;beardifying:Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Beardifying;
intermediary field_37113
Lnet/minecraft/class_6568;field_37113:Lnet/minecraft/class_6916$class_7050;
official s
Ldya;s:Ldxq$c;
-
lastBlendingColumnPos
private long lastBlendingColumnPos- Mappings:
Namespace Name Mixin selector named lastBlendingColumnPos
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;lastBlendingColumnPos:J
intermediary field_36587
Lnet/minecraft/class_6568;field_36587:J
official t
Ldya;t:J
-
lastBlendingResult
- Mappings:
Namespace Name Mixin selector named lastBlendingResult
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;lastBlendingResult:Lnet/minecraft/world/gen/chunk/Blender$BlendResult;
intermediary field_36588
Lnet/minecraft/class_6568;field_36588:Lnet/minecraft/class_6748$class_6956;
official u
Ldya;u:Ldyy$a;
-
horizontalBiomeEnd
final int horizontalBiomeEnd- Mappings:
Namespace Name Mixin selector named horizontalBiomeEnd
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalBiomeEnd:I
intermediary field_36589
Lnet/minecraft/class_6568;field_36589:I
official v
Ldya;v:I
-
horizontalCellBlockCount
final int horizontalCellBlockCount- Mappings:
Namespace Name Mixin selector named horizontalCellBlockCount
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;horizontalCellBlockCount:I
intermediary field_36590
Lnet/minecraft/class_6568;field_36590:I
official w
Ldya;w:I
-
verticalCellBlockCount
final int verticalCellBlockCount- Mappings:
Namespace Name Mixin selector named verticalCellBlockCount
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;verticalCellBlockCount:I
intermediary field_36591
Lnet/minecraft/class_6568;field_36591:I
official x
Ldya;x:I
-
isInInterpolationLoop
boolean isInInterpolationLoop- Mappings:
Namespace Name Mixin selector named isInInterpolationLoop
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;isInInterpolationLoop:Z
intermediary field_36592
Lnet/minecraft/class_6568;field_36592:Z
official y
Ldya;y:Z
-
isSamplingForCaches
boolean isSamplingForCaches- Mappings:
Namespace Name Mixin selector named isSamplingForCaches
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;isSamplingForCaches:Z
intermediary field_36593
Lnet/minecraft/class_6568;field_36593:Z
official z
Ldya;z:Z
-
startBlockX
private int startBlockX- Mappings:
Namespace Name Mixin selector named startBlockX
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockX:I
intermediary field_36594
Lnet/minecraft/class_6568;field_36594:I
official A
Ldya;A:I
-
startBlockY
int startBlockY- Mappings:
Namespace Name Mixin selector named startBlockY
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockY:I
intermediary field_36572
Lnet/minecraft/class_6568;field_36572:I
official B
Ldya;B:I
-
startBlockZ
private int startBlockZ- Mappings:
Namespace Name Mixin selector named startBlockZ
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;startBlockZ:I
intermediary field_36573
Lnet/minecraft/class_6568;field_36573:I
official C
Ldya;C:I
-
cellBlockX
int cellBlockX- Mappings:
Namespace Name Mixin selector named cellBlockX
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockX:I
intermediary field_36574
Lnet/minecraft/class_6568;field_36574:I
official D
Ldya;D:I
-
cellBlockY
int cellBlockY- Mappings:
Namespace Name Mixin selector named cellBlockY
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockY:I
intermediary field_36575
Lnet/minecraft/class_6568;field_36575:I
official E
Ldya;E:I
-
cellBlockZ
int cellBlockZ- Mappings:
Namespace Name Mixin selector named cellBlockZ
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cellBlockZ:I
intermediary field_36576
Lnet/minecraft/class_6568;field_36576:I
official F
Ldya;F:I
-
sampleUniqueIndex
long sampleUniqueIndex- Mappings:
Namespace Name Mixin selector named sampleUniqueIndex
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleUniqueIndex:J
intermediary field_36577
Lnet/minecraft/class_6568;field_36577:J
official G
Ldya;G:J
-
cacheOnceUniqueIndex
long cacheOnceUniqueIndex- Mappings:
Namespace Name Mixin selector named cacheOnceUniqueIndex
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;cacheOnceUniqueIndex:J
intermediary field_36578
Lnet/minecraft/class_6568;field_36578:J
official H
Ldya;H:J
-
index
int index- Mappings:
Namespace Name Mixin selector named index
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;index:I
intermediary field_36579
Lnet/minecraft/class_6568;field_36579:I
official I
Ldya;I:I
-
interpolationEachApplier
The implementation ofEachApplier
that 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
0
for X, Y and Z).- Mappings:
Namespace Name Mixin selector named interpolationEachApplier
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolationEachApplier:Lnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;
intermediary field_36580
Lnet/minecraft/class_6568;field_36580:Lnet/minecraft/class_6910$class_6911;
official J
Ldya;J:Ldxp$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;)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
official <init>
Ldya;<init>(ILdyk;IILdye;Ldxq$c;Ldyb;Ldxi$a;Ldyy;)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 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;
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;
official a
Ldya;a(Ldua;Ldyk;Ldxq$c;Ldyb;Ldxi$a;Ldyy;)Ldya;
-
createMultiNoiseSampler
protected MultiNoiseUtil.MultiNoiseSampler createMultiNoiseSampler(NoiseRouter noiseRouter, List<MultiNoiseUtil.NoiseHypercube> spawnTarget) - Mappings:
Namespace Name Mixin selector 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;
intermediary method_40531
Lnet/minecraft/class_6568;method_40531(Lnet/minecraft/class_6953;Ljava/util/List;)Lnet/minecraft/class_6544$class_6552;
official a
Ldya;a(Ldyc;Ljava/util/List;)Lddi$f;
-
sampleBlockState
- Mappings:
Namespace Name Mixin selector named sampleBlockState
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleBlockState()Lnet/minecraft/block/BlockState;
intermediary method_40536
Lnet/minecraft/class_6568;method_40536()Lnet/minecraft/class_2680;
official e
Ldya;e()Ldse;
-
blockX
public int blockX()- Specified by:
blockX
in interfaceDensityFunction.NoisePos
- Mappings:
Namespace Name Mixin selector named blockX
Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockX()I
intermediary comp_371
Lnet/minecraft/class_6910$class_6912;comp_371()I
official a
Ldxp$b;a()I
-
blockY
public int blockY()- Specified by:
blockY
in interfaceDensityFunction.NoisePos
- Mappings:
Namespace Name Mixin selector named blockY
Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockY()I
intermediary comp_372
Lnet/minecraft/class_6910$class_6912;comp_372()I
official b
Ldxp$b;b()I
-
blockZ
public int blockZ()- Specified by:
blockZ
in interfaceDensityFunction.NoisePos
- Mappings:
Namespace Name Mixin selector named blockZ
Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;blockZ()I
intermediary comp_373
Lnet/minecraft/class_6910$class_6912;comp_373()I
official c
Ldxp$b;c()I
-
estimateSurfaceHeight
public int estimateSurfaceHeight(int blockX, int blockZ) - Mappings:
Namespace Name Mixin selector named estimateSurfaceHeight
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;estimateSurfaceHeight(II)I
intermediary method_39900
Lnet/minecraft/class_6568;method_39900(II)I
official a
Ldya;a(II)I
-
calculateSurfaceHeightEstimate
private int calculateSurfaceHeightEstimate(long columnPos) - Mappings:
Namespace Name Mixin selector named calculateSurfaceHeightEstimate
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;calculateSurfaceHeightEstimate(J)I
intermediary method_39899
Lnet/minecraft/class_6568;method_39899(J)I
official a
Ldya;a(J)I
-
getBlender
- Specified by:
getBlender
in interfaceDensityFunction.NoisePos
- Mappings:
Namespace Name Mixin selector named getBlender
Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;getBlender()Lnet/minecraft/world/gen/chunk/Blender;
intermediary method_39327
Lnet/minecraft/class_6910$class_6912;method_39327()Lnet/minecraft/class_6748;
official d
Ldxp$b;d()Ldyy;
-
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 everyinterpolated
function.- 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 sampleDensity
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleDensity(ZI)V
intermediary method_40532
Lnet/minecraft/class_6568;method_40532(ZI)V
official a
Ldya;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 everyinterpolated
function. The resulting density values will be stored in the interpolator's start density buffer.- Mappings:
Namespace Name Mixin selector named sampleStartDensity
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleStartDensity()V
intermediary method_38336
Lnet/minecraft/class_6568;method_38336()V
official f
Ldya;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 everyinterpolated
function. 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 sampleEndDensity
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;sampleEndDensity(I)V
intermediary method_38339
Lnet/minecraft/class_6568;method_38339(I)V
official b
Ldya;b(I)V
-
at
Description copied from interface:DensityFunction.EachApplier
Returns 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:
at
in interfaceDensityFunction.EachApplier
- Returns:
- the block position at a specific index of the density array
- Mappings:
Namespace Name Mixin selector named at
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;at(I)Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;
intermediary method_40534
Lnet/minecraft/class_6568;method_40534(I)Lnet/minecraft/class_6568;
official c
Ldya;c(I)Ldya;
-
fill
Fills the density array using a density function.- Specified by:
fill
in interfaceDensityFunction.EachApplier
- Implementation Note:
- This can have side effects.
- Mappings:
Namespace Name Mixin selector named fill
Lnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction;)V
intermediary method_40478
Lnet/minecraft/class_6910$class_6911;method_40478([DLnet/minecraft/class_6910;)V
official a
Ldxp$a;a([DLdxp;)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,
this
is used as theEachApplier
. - Mappings:
Namespace Name Mixin selector named onSampledCellCorners
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;onSampledCellCorners(II)V
intermediary method_38362
Lnet/minecraft/class_6568;method_38362(II)V
official b
Ldya;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 interpolateY
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateY(ID)V
intermediary method_38337
Lnet/minecraft/class_6568;method_38337(ID)V
official a
Ldya;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 interpolateX
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateX(ID)V
intermediary method_38349
Lnet/minecraft/class_6568;method_38349(ID)V
official b
Ldya;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 interpolateZ
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;interpolateZ(ID)V
intermediary method_38355
Lnet/minecraft/class_6568;method_38355(ID)V
official c
Ldya;c(ID)V
-
stopInterpolation
public void stopInterpolation()Stops the interpolation loop for this chunk.- Mappings:
Namespace Name Mixin selector named stopInterpolation
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;stopInterpolation()V
intermediary method_40537
Lnet/minecraft/class_6568;method_40537()V
official g
Ldya;g()V
-
swapBuffers
public void swapBuffers()Swaps the start and end density buffers of every interpolator.- Mappings:
Namespace Name Mixin selector named swapBuffers
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;swapBuffers()V
intermediary method_38348
Lnet/minecraft/class_6568;method_38348()V
official h
Ldya;h()V
-
getAquiferSampler
- Mappings:
Namespace Name Mixin selector named getAquiferSampler
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getAquiferSampler()Lnet/minecraft/world/gen/chunk/AquiferSampler;
intermediary method_38354
Lnet/minecraft/class_6568;method_38354()Lnet/minecraft/class_6350;
official i
Ldya;i()Ldxi;
-
getHorizontalCellBlockCount
protected int getHorizontalCellBlockCount()- Mappings:
Namespace Name Mixin selector named getHorizontalCellBlockCount
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getHorizontalCellBlockCount()I
intermediary method_42361
Lnet/minecraft/class_6568;method_42361()I
official j
Ldya;j()I
-
getVerticalCellBlockCount
protected int getVerticalCellBlockCount()- Mappings:
Namespace Name Mixin selector named getVerticalCellBlockCount
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getVerticalCellBlockCount()I
intermediary method_42362
Lnet/minecraft/class_6568;method_42362()I
official k
Ldya;k()I
-
calculateBlendResult
- Mappings:
Namespace Name Mixin selector named calculateBlendResult
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;calculateBlendResult(II)Lnet/minecraft/world/gen/chunk/Blender$BlendResult;
intermediary method_40535
Lnet/minecraft/class_6568;method_40535(II)Lnet/minecraft/class_6748$class_6956;
official c
Ldya;c(II)Ldyy$a;
-
getActualDensityFunction
Returns the actual density function for a given density function.The classes in
DensityFunctionTypes
for caches, interpolators,blend_alpha
andblend_offset
use 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 getActualDensityFunction
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getActualDensityFunction(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
intermediary method_40529
Lnet/minecraft/class_6568;method_40529(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;
official a
Ldya;a(Ldxp;)Ldxp;
-
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 getActualDensityFunctionImpl
Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;getActualDensityFunctionImpl(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
intermediary method_40533
Lnet/minecraft/class_6568;method_40533(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;
official b
Ldya;b(Ldxp;)Ldxp;
-