Class Aquifer.NoiseBasedAquifer

java.lang.Object
net.minecraft.world.level.levelgen.Aquifer.NoiseBasedAquifer
All Implemented Interfaces:
Aquifer
Enclosing interface:
Aquifer

public static class Aquifer.NoiseBasedAquifer extends Object implements Aquifer
  • 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

      private final NoiseChunk noiseChunk
    • barrierNoise

      protected final DensityFunction barrierNoise
    • fluidLevelFloodednessNoise

      private final DensityFunction fluidLevelFloodednessNoise
    • fluidLevelSpreadNoise

      private final DensityFunction fluidLevelSpreadNoise
    • lavaNoise

      protected final DensityFunction lavaNoise
    • positionalRandomFactory

      private final PositionalRandomFactory positionalRandomFactory
    • aquiferCache

      protected final Aquifer.FluidStatus[] aquiferCache
    • aquiferLocationCache

      protected final long[] aquiferLocationCache
    • globalFluidPicker

      private final Aquifer.FluidPicker globalFluidPicker
    • erosion

      private final DensityFunction erosion
    • depth

      private final DensityFunction depth
    • 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

  • 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 interface Aquifer
    • shouldScheduleFluidUpdate

      public boolean shouldScheduleFluidUpdate()
      Specified by:
      shouldScheduleFluidUpdate in interface Aquifer
    • 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

      private Aquifer.FluidStatus getAquiferStatus(long p_188446_)
    • computeFluid

      private Aquifer.FluidStatus computeFluid(int p_188448_, int p_188449_, int p_188450_)
    • computeSurfaceLevel

      private int computeSurfaceLevel(int p_223910_, int p_223911_, int p_223912_, Aquifer.FluidStatus p_223913_, int p_223914_, boolean p_223915_)
    • computeRandomizedFluidSurfaceLevel

      private int computeRandomizedFluidSurfaceLevel(int p_223899_, int p_223900_, int p_223901_, int p_223902_)
    • computeFluidType

      private BlockState computeFluidType(int p_223904_, int p_223905_, int p_223906_, Aquifer.FluidStatus p_223907_, int p_223908_)