Class Aquifer.NoiseBasedAquifer
java.lang.Object
net.minecraft.world.level.levelgen.Aquifer.NoiseBasedAquifer
- All Implemented Interfaces:
Aquifer
- Enclosing interface:
- Aquifer
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.levelgen.Aquifer
Aquifer.FluidPicker, Aquifer.FluidStatus, Aquifer.NoiseBasedAquifer
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Aquifer.FluidStatus[]
protected final long[]
protected final DensityFunction
private static final double
private final DensityFunction
private final DensityFunction
private final Aquifer.FluidPicker
protected final int
protected final int
protected final DensityFunction
private static final int
protected final int
protected final int
protected final int
private final NoiseChunk
private final PositionalRandomFactory
protected boolean
private static final int[][]
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
-
Constructor Summary
ConstructorDescriptionNoiseBasedAquifer
(NoiseChunk p_208175_, ChunkPos p_208176_, DensityFunction p_208177_, DensityFunction p_208178_, DensityFunction p_208179_, DensityFunction p_208180_, PositionalRandomFactory p_208181_, int p_208182_, int p_208183_, Aquifer.FluidPicker p_208184_) -
Method Summary
Modifier and TypeMethodDescriptionprivate double
calculatePressure
(DensityFunction.FunctionContext p_208189_, org.apache.commons.lang3.mutable.MutableDouble p_208190_, Aquifer.FluidStatus p_208191_, Aquifer.FluidStatus p_208192_) private Aquifer.FluidStatus
computeFluid
(int p_188448_, int p_188449_, int p_188450_) computeSubstance
(DensityFunction.FunctionContext p_208186_, double p_208187_) private Aquifer.FluidStatus
getAquiferStatus
(long p_188446_) protected int
getIndex
(int p_158028_, int p_158029_, int p_158030_) protected int
gridX
(int p_158040_) protected int
gridY
(int p_158046_) protected int
gridZ
(int p_158048_) boolean
protected static double
similarity
(int p_158025_, int p_158026_)
-
Field Details
-
X_RANGE
private static final int X_RANGE- See Also:
-
Y_RANGE
private static final int Y_RANGE- See Also:
-
Z_RANGE
private static final int Z_RANGE- See Also:
-
X_SEPARATION
private static final int X_SEPARATION- See Also:
-
Y_SEPARATION
private static final int Y_SEPARATION- See Also:
-
Z_SEPARATION
private static final int Z_SEPARATION- See Also:
-
X_SPACING
private static final int X_SPACING- See Also:
-
Y_SPACING
private static final int Y_SPACING- See Also:
-
Z_SPACING
private static final int Z_SPACING- See Also:
-
MAX_REASONABLE_DISTANCE_TO_AQUIFER_CENTER
private static final int MAX_REASONABLE_DISTANCE_TO_AQUIFER_CENTER- See Also:
-
FLOWING_UPDATE_SIMULARITY
private static final double FLOWING_UPDATE_SIMULARITY -
noiseChunk
-
barrierNoise
-
fluidLevelFloodednessNoise
-
fluidLevelSpreadNoise
-
lavaNoise
-
positionalRandomFactory
-
aquiferCache
-
aquiferLocationCache
protected final long[] aquiferLocationCache -
globalFluidPicker
-
shouldScheduleFluidUpdate
protected boolean shouldScheduleFluidUpdate -
minGridX
protected final int minGridX -
minGridY
protected final int minGridY -
minGridZ
protected final int minGridZ -
gridSizeX
protected final int gridSizeX -
gridSizeZ
protected final int gridSizeZ -
SURFACE_SAMPLING_OFFSETS_IN_CHUNKS
private static final int[][] SURFACE_SAMPLING_OFFSETS_IN_CHUNKS
-
-
Constructor Details
-
NoiseBasedAquifer
NoiseBasedAquifer(NoiseChunk p_208175_, ChunkPos p_208176_, DensityFunction p_208177_, DensityFunction p_208178_, DensityFunction p_208179_, DensityFunction p_208180_, PositionalRandomFactory p_208181_, int p_208182_, int p_208183_, Aquifer.FluidPicker p_208184_)
-
-
Method Details
-
getIndex
protected int getIndex(int p_158028_, int p_158029_, int p_158030_) -
computeSubstance
@Nullable public BlockState computeSubstance(DensityFunction.FunctionContext p_208186_, double p_208187_) - Specified by:
computeSubstance
in interfaceAquifer
-
shouldScheduleFluidUpdate
public boolean shouldScheduleFluidUpdate()- Specified by:
shouldScheduleFluidUpdate
in interfaceAquifer
-
similarity
protected static double similarity(int p_158025_, int p_158026_) -
calculatePressure
private double calculatePressure(DensityFunction.FunctionContext p_208189_, org.apache.commons.lang3.mutable.MutableDouble p_208190_, Aquifer.FluidStatus p_208191_, Aquifer.FluidStatus p_208192_) -
gridX
protected int gridX(int p_158040_) -
gridY
protected int gridY(int p_158046_) -
gridZ
protected int gridZ(int p_158048_) -
getAquiferStatus
-
computeFluid
-