Class BlendingData

java.lang.Object
net.minecraft.world.level.levelgen.blending.BlendingData

public class BlendingData extends Object
  • Field Details

    • BLENDING_DENSITY_FACTOR

      private static final double BLENDING_DENSITY_FACTOR
      See Also:
    • CELL_WIDTH

      protected static final int CELL_WIDTH
      See Also:
    • CELL_HEIGHT

      protected static final int CELL_HEIGHT
      See Also:
    • CELL_RATIO

      protected static final int CELL_RATIO
      See Also:
    • SOLID_DENSITY

      private static final double SOLID_DENSITY
      See Also:
    • AIR_DENSITY

      private static final double AIR_DENSITY
      See Also:
    • CELLS_PER_SECTION_Y

      private static final int CELLS_PER_SECTION_Y
      See Also:
    • QUARTS_PER_SECTION

      private static final int QUARTS_PER_SECTION
    • CELL_HORIZONTAL_MAX_INDEX_INSIDE

      private static final int CELL_HORIZONTAL_MAX_INDEX_INSIDE
    • CELL_HORIZONTAL_MAX_INDEX_OUTSIDE

      private static final int CELL_HORIZONTAL_MAX_INDEX_OUTSIDE
    • CELL_COLUMN_INSIDE_COUNT

      private static final int CELL_COLUMN_INSIDE_COUNT
    • CELL_COLUMN_OUTSIDE_COUNT

      private static final int CELL_COLUMN_OUTSIDE_COUNT
    • CELL_COLUMN_COUNT

      private static final int CELL_COLUMN_COUNT
    • areaWithOldGeneration

      private final LevelHeightAccessor areaWithOldGeneration
    • SURFACE_BLOCKS

      private static final List<Block> SURFACE_BLOCKS
    • NO_VALUE

      protected static final double NO_VALUE
      See Also:
    • hasCalculatedData

      private boolean hasCalculatedData
    • heights

      private final double[] heights
    • biomes

      private final List<List<Holder<Biome>>> biomes
    • densities

      private final transient double[][] densities
    • DOUBLE_ARRAY_CODEC

      private static final com.mojang.serialization.Codec<double[]> DOUBLE_ARRAY_CODEC
    • CODEC

      public static final com.mojang.serialization.Codec<BlendingData> CODEC
  • Constructor Details

    • BlendingData

      private BlendingData(int p_224740_, int p_224741_, Optional<double[]> p_224742_)
  • Method Details

    • validateArraySize

      private static com.mojang.serialization.DataResult<BlendingData> validateArraySize(BlendingData p_190321_)
    • getOrUpdateBlendingData

      @Nullable public static BlendingData getOrUpdateBlendingData(WorldGenRegion p_190305_, int p_190306_, int p_190307_)
    • sideByGenerationAge

      public static Set<Direction8> sideByGenerationAge(WorldGenLevel p_197066_, int p_197067_, int p_197068_, boolean p_197069_)
    • calculateData

      private void calculateData(ChunkAccess p_190318_, Set<Direction8> p_190319_)
    • addValuesForColumn

      private void addValuesForColumn(int p_190300_, ChunkAccess p_190301_, int p_190302_, int p_190303_)
    • getHeightAtXZ

      private int getHeightAtXZ(ChunkAccess p_190311_, int p_190312_, int p_190313_)
    • read1

      private static double read1(ChunkAccess p_198298_, BlockPos.MutableBlockPos p_198299_)
    • read7

      private static double read7(ChunkAccess p_198301_, BlockPos.MutableBlockPos p_198302_)
    • getDensityColumn

      private double[] getDensityColumn(ChunkAccess p_198293_, int p_198294_, int p_198295_, int p_198296_)
    • getBiomeColumn

      private List<Holder<Biome>> getBiomeColumn(ChunkAccess p_224758_, int p_224759_, int p_224760_)
    • isGround

      private static boolean isGround(ChunkAccess p_190315_, BlockPos p_190316_)
    • getHeight

      protected double getHeight(int p_190286_, int p_190287_, int p_190288_)
    • getDensity

      private double getDensity(@Nullable double[] p_190325_, int p_190326_)
    • getDensity

      protected double getDensity(int p_190334_, int p_190335_, int p_190336_)
    • iterateBiomes

      protected void iterateBiomes(int p_224749_, int p_224750_, int p_224751_, BlendingData.BiomeConsumer p_224752_)
    • iterateHeights

      protected void iterateHeights(int p_190296_, int p_190297_, BlendingData.HeightConsumer p_190298_)
    • iterateDensities

      protected void iterateDensities(int p_190290_, int p_190291_, int p_190292_, int p_190293_, BlendingData.DensityConsumer p_190294_)
    • cellCountPerColumn

      private int cellCountPerColumn()
    • quartCountPerColumn

      private int quartCountPerColumn()
    • getColumnMinY

      private int getColumnMinY()
    • getMinY

      private int getMinY()
    • getCellYIndex

      private int getCellYIndex(int p_224747_)
    • getInsideIndex

      private static int getInsideIndex(int p_190331_, int p_190332_)
    • getOutsideIndex

      private static int getOutsideIndex(int p_190351_, int p_190352_)
    • getX

      private static int getX(int p_190349_)
    • getZ

      private static int getZ(int p_190355_)
    • zeroIfNegative

      private static int zeroIfNegative(int p_190357_)
    • getAreaWithOldGeneration

      public LevelHeightAccessor getAreaWithOldGeneration()