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.NoiseBasedAquifer
-
Field Summary
Modifier and TypeFieldDescriptionprotected Aquifer.NoiseBasedAquifer.AquiferStatus[]
protected long[]
protected NormalNoise
protected int
protected int
protected NormalNoise
protected int
protected int
protected int
protected NoiseGeneratorSettings
protected NoiseSampler
protected boolean
protected NormalNoise
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
Fields inherited from interface net.minecraft.world.level.levelgen.Aquifer
ALWAYS_LAVA_AT_OR_BELOW_Y_INDEX, ALWAYS_USE_SEA_LEVEL_WHEN_ABOVE
-
Constructor Summary
ModifierConstructorDescriptionprotected
NoiseBasedAquifer(ChunkPos p_158008_, NormalNoise p_158009_, NormalNoise p_158010_, NormalNoise p_158011_, NoiseGeneratorSettings p_158012_, NoiseSampler p_158013_, int p_158014_, int p_158015_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
calculatePressure(int p_158020_, double p_158021_, Aquifer.NoiseBasedAquifer.AquiferStatus p_158022_, Aquifer.NoiseBasedAquifer.AquiferStatus p_158023_)
protected Aquifer.NoiseBasedAquifer.AquiferStatus
computeAquifer(int p_158042_, int p_158043_, int p_158044_)
computeState(BaseStoneSource p_158034_, int p_158035_, int p_158036_, int p_158037_, double p_158038_)
protected Aquifer.NoiseBasedAquifer.AquiferStatus
getAquiferStatus(long p_158032_)
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_)
protected boolean
isLavaLevel(int p_158018_)
boolean
protected double
similarity(int p_158025_, int p_158026_)
-
Field Details
-
X_RANGE
private static final int X_RANGE- See Also:
- Constant Field Values
-
Y_RANGE
private static final int Y_RANGE- See Also:
- Constant Field Values
-
Z_RANGE
private static final int Z_RANGE- See Also:
- Constant Field Values
-
X_SEPARATION
private static final int X_SEPARATION- See Also:
- Constant Field Values
-
Y_SEPARATION
private static final int Y_SEPARATION- See Also:
- Constant Field Values
-
Z_SEPARATION
private static final int Z_SEPARATION- See Also:
- Constant Field Values
-
X_SPACING
private static final int X_SPACING- See Also:
- Constant Field Values
-
Y_SPACING
private static final int Y_SPACING- See Also:
- Constant Field Values
-
Z_SPACING
private static final int Z_SPACING- See Also:
- Constant Field Values
-
barrierNoise
-
waterLevelNoise
-
lavaNoise
-
noiseGeneratorSettings
-
aquiferCache
-
aquiferLocationCache
protected final long[] aquiferLocationCache -
shouldScheduleFluidUpdate
protected boolean shouldScheduleFluidUpdate -
sampler
-
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
-
-
Constructor Details
-
NoiseBasedAquifer
protected NoiseBasedAquifer(ChunkPos p_158008_, NormalNoise p_158009_, NormalNoise p_158010_, NormalNoise p_158011_, NoiseGeneratorSettings p_158012_, NoiseSampler p_158013_, int p_158014_, int p_158015_)
-
-
Method Details
-
getIndex
protected int getIndex(int p_158028_, int p_158029_, int p_158030_) -
computeState
public BlockState computeState(BaseStoneSource p_158034_, int p_158035_, int p_158036_, int p_158037_, double p_158038_)- Specified by:
computeState
in interfaceAquifer
-
shouldScheduleFluidUpdate
public boolean shouldScheduleFluidUpdate()- Specified by:
shouldScheduleFluidUpdate
in interfaceAquifer
-
isLavaLevel
protected boolean isLavaLevel(int p_158018_) -
similarity
protected double similarity(int p_158025_, int p_158026_) -
calculatePressure
protected double calculatePressure(int p_158020_, double p_158021_, Aquifer.NoiseBasedAquifer.AquiferStatus p_158022_, Aquifer.NoiseBasedAquifer.AquiferStatus p_158023_) -
gridX
protected int gridX(int p_158040_) -
gridY
protected int gridY(int p_158046_) -
gridZ
protected int gridZ(int p_158048_) -
getAquiferStatus
-
computeAquifer
protected Aquifer.NoiseBasedAquifer.AquiferStatus computeAquifer(int p_158042_, int p_158043_, int p_158044_)
-