net.minecraft.world.gen.chunk

public class AquiferSampler$Impl

implements AquiferSampler

net.minecraft.world.level.levelgen.Aquifer$NoiseBasedAquifer
net.minecraft.world.level.levelgen.Aquifer$NoiseBasedAquifer
net.minecraft.class_6350$class_5832
net.minecraft.world.gen.chunk.AquiferSampler$Impl

Field summary

Modifier and TypeField
private static final int
X_RANGE
X_RANGE
field_31451
field_31451
private static final int
Y_RANGE
Y_RANGE
field_31452
field_31452
private static final int
Z_RANGE
Z_RANGE
field_31453
field_31453
private static final int
X_SEPARATION
X_SEPARATION
field_31454
field_31454
private static final int
Y_SEPARATION
Y_SEPARATION
field_31455
field_31455
private static final int
Z_SEPARATION
Z_SEPARATION
field_31456
field_31456
private static final int
X_SPACING
X_SPACING
field_31457
CELL_SIZE_X
private static final int
Y_SPACING
Y_SPACING
field_31458
CELL_SIZE_Y
private static final int
Z_SPACING
Z_SPACING
field_31459
CELL_SIZE_Z
private static final int
X_SPACING_SHIFT
X_SPACING_SHIFT
field_61453
field_61453
private static final int
Z_SPACING_SHIFT
Z_SPACING_SHIFT
field_61454
field_61454
private static final int
MAX_REASONABLE_DISTANCE_TO_AQUIFER_CENTER
MAX_REASONABLE_DISTANCE_TO_AQUIFER_CENTER
field_36220
field_36220
private static final double
FLOWING_UPDATE_SIMULARITY
FLOWING_UPDATE_SIMULARITY
field_36221
FLUID_TICK_DENSITY_FACTOR_THRESHOLD
private static final int
SAMPLE_OFFSET_X
SAMPLE_OFFSET_X
field_61455
field_61455
private static final int
SAMPLE_OFFSET_Y
SAMPLE_OFFSET_Y
field_61456
field_61456
private static final int
SAMPLE_OFFSET_Z
SAMPLE_OFFSET_Z
field_61457
field_61457
private static final int
MIN_CELL_SAMPLE_X
MIN_CELL_SAMPLE_X
field_61458
field_61458
private static final int
MIN_CELL_SAMPLE_Y
MIN_CELL_SAMPLE_Y
field_61459
field_61459
private static final int
MIN_CELL_SAMPLE_Z
MIN_CELL_SAMPLE_Z
field_61460
field_61460
private static final int
MAX_CELL_SAMPLE_X
MAX_CELL_SAMPLE_X
field_61461
field_61461
private static final int
MAX_CELL_SAMPLE_Y
MAX_CELL_SAMPLE_Y
field_61462
field_61462
private static final int
MAX_CELL_SAMPLE_Z
MAX_CELL_SAMPLE_Z
field_61463
field_61463
private final Sampler$Contextual
barrierNoise
barrierNoise
field_28813
barrierNoise
private final Sampler$Contextual
fluidLevelFloodednessNoise
fluidLevelFloodednessNoise
field_35122
fluidLevelFloodednessNoise
private final Sampler$Contextual
fluidLevelSpreadNoise
fluidLevelSpreadNoise
field_35123
fluidLevelSpreadNoise
private final Sampler$Contextual
lavaNoise
lavaNoise
field_33575
fluidTypeNoise
private final RandomSplitter
positionalRandomFactory
positionalRandomFactory
field_34579
randomDeriver
private final AquiferSampler$FluidLevel[]
aquiferCache
aquiferCache
field_28816
waterLevels
private final long[]
aquiferLocationCache
aquiferLocationCache
field_28817
blockPositions
private final AquiferSampler$FluidLevelSampler
globalFluidPicker
globalFluidPicker
field_34580
fluidLevelSampler
private final Sampler$Contextual
exclusion
exclusion
field_1_9016
exclusion
private boolean
shouldScheduleFluidUpdate
shouldScheduleFluidUpdate
field_28820
needsFluidTick
private final int
skipSamplingAboveY
skipSamplingAboveY
field_61452
maxY
private final int
minGridX
minGridX
field_28822
startCellX
private final int
minGridY
minGridY
field_28823
startCellY
private final int
minGridZ
minGridZ
field_28824
startCellZ
private final int
gridSizeX
gridSizeX
field_28825
cellCountX
private final int
gridSizeZ
gridSizeZ
field_28826
cellCountZ
private final Sampler$Contextual
surfaceLevel
surfaceLevel
field_1_9018
surfaceLevel
private final it.unimi.dsi.fastutil.longs.Long2IntMap
surfaceLevelCache
surfaceLevelCache
field_1_9017
surfaceLevelCache
private static final int[][]
SURFACE_SAMPLING_OFFSETS_IN_CHUNKS
SURFACE_SAMPLING_OFFSETS_IN_CHUNKS
field_34581
CHUNK_POS_OFFSETS

Constructor summary

ModifierConstructor
private (ContextualSamplerProvider cachingSamplers, AquiferSampler$Config config, RandomSplitter randomSplitter, SamplingRegion volume, AquiferSampler$FluidLevelSampler fluidLevelSampler)

Method summary

Modifier and TypeMethod
private int
surfaceLevel(int blockX, int blockZ)
surfaceLevel(int blockX, int blockZ)
method_1_8592(int arg0, int arg1)
getSurfaceLevel(int x, int z)
private int
maxSurfaceLevel(int minBlockX, int minBlockZ, int maxBlockX, int maxBlockZ)
maxSurfaceLevel(int minBlockX, int minBlockZ, int maxBlockX, int maxBlockZ)
method_1_8591(int arg0, int arg1, int arg2, int arg3)
getMaxSurfaceLevel(int minX, int minZ, int maxX, int maxZ)
private int
getIndex(int gridX, int gridY, int gridZ)
getIndex(int gridX, int gridY, int gridZ)
method_33741(int arg0, int arg1, int arg2)
index(int x, int y, int z)
public BlockState
computeSubstance(int blockX, int blockY, int blockZ, double density)
computeSubstance(int blockX, int blockY, int blockZ, double density)
method_38317(int arg0, int arg1, int arg2, double arg3)
apply(int arg0, int arg1, int arg2, double arg3)
public boolean
shouldScheduleFluidUpdate()
shouldScheduleFluidUpdate()
method_33742()
needsFluidTick()
private static double
similarity(int distanceSqr1, int distanceSqr2)
similarity(int distanceSqr1, int distanceSqr2)
method_33736(int arg0, int arg1)
densityFactor(int nearerCellDistance, int fartherCellDistance)
private double
calculatePressure(int blockX, int blockY, int blockZ, org.apache.commons.lang3.mutable.MutableDouble barrierNoiseValue, Aquifer$FluidStatus statusClosest1, Aquifer$FluidStatus statusClosest2)
calculatePressure(int blockX, int blockY, int blockZ, org.apache.commons.lang3.mutable.MutableDouble barrierNoiseValue, Aquifer$FluidStatus statusClosest1, Aquifer$FluidStatus statusClosest2)
method_33735(int arg0, int arg1, int arg2, org.apache.commons.lang3.mutable.MutableDouble arg3, class_6350$class_6351 arg4, class_6350$class_6351 arg5)
calculateDensity(int arg0, int arg1, int arg2, org.apache.commons.lang3.mutable.MutableDouble cachedBarrierNoiseValue, AquiferSampler$FluidLevel nearerLevel, AquiferSampler$FluidLevel fartherLevel)
private static int
gridX(int blockCoord)
gridX(int blockCoord)
method_33734(int arg0)
getCellX(int x)
private static int
fromGridX(int gridCoord, int blockOffset)
fromGridX(int gridCoord, int blockOffset)
method_72677(int arg0, int arg1)
reconstructX(int cellX, int cellLocalX)
private static int
gridY(int blockCoord)
gridY(int blockCoord)
method_33740(int arg0)
getCellY(int x)
private static int
fromGridY(int gridCoord, int blockOffset)
fromGridY(int gridCoord, int blockOffset)
method_72678(int arg0, int arg1)
reconstructY(int cellY, int cellLocalY)
private static int
gridZ(int blockCoord)
gridZ(int blockCoord)
method_33743(int arg0)
getCellZ(int z)
private static int
fromGridZ(int gridCoord, int blockOffset)
fromGridZ(int gridCoord, int blockOffset)
method_72679(int arg0, int arg1)
reconstructZ(int cellZ, int cellLocalZ)
private AquiferSampler$FluidLevel
getAquiferStatus(int index)
getAquiferStatus(int index)
method_33738(int arg0)
getWaterLevel(int cellIndex)
private AquiferSampler$FluidLevel
computeFluid(int x, int y, int z)
computeFluid(int x, int y, int z)
method_40463(int arg0, int arg1, int arg2)
generateFluidLevel(int blockX, int blockY, int blockZ)
private int
adjustSurfaceLevel(int preliminarySurfaceLevel)
adjustSurfaceLevel(int preliminarySurfaceLevel)
method_72680(int arg0)
adjustEstimatedHighestSurfaceLevel(int estimatedHighestSurfaceLevel)
private int
computeSurfaceLevel(int x, int y, int z, Aquifer$FluidStatus globalFluid, int lowestSurfaceLevel, boolean surfaceAtCenterIsUnderGlobalFluidLevel)
computeSurfaceLevel(int x, int y, int z, Aquifer$FluidStatus globalFluid, int lowestSurfaceLevel, boolean surfaceAtCenterIsUnderGlobalFluidLevel)
method_42354(int arg0, int arg1, int arg2, class_6350$class_6351 arg3, int arg4, boolean arg5)
getFluidBlockY(int blockX, int blockY, int blockZ, AquiferSampler$FluidLevel defaultFluidLevel, int arg4, boolean arg5)
private int
computeRandomizedFluidSurfaceLevel(int x, int y, int z, int lowestSurfaceLevel)
computeRandomizedFluidSurfaceLevel(int x, int y, int z, int lowestSurfaceLevel)
method_42352(int arg0, int arg1, int arg2, int arg3)
getNoiseBasedFluidLevel(int blockX, int blockY, int blockZ, int arg3)
private BlockState
computeFluidType(int x, int y, int z, Aquifer$FluidStatus globalFluid, int fluidSurfaceLevel)
computeFluidType(int x, int y, int z, Aquifer$FluidStatus globalFluid, int fluidSurfaceLevel)
method_42353(int arg0, int arg1, int arg2, class_6350$class_6351 arg3, int arg4)
getFluidBlockState(int blockX, int blockY, int blockZ, AquiferSampler$FluidLevel defaultFluidLevel, int fluidLevel)