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:
    • AREA_WITH_OLD_GENERATION

      protected static final LevelHeightAccessor AREA_WITH_OLD_GENERATION
    • 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:
    • 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
    • CELL_HORIZONTAL_FLOOR_COUNT

      private static final int CELL_HORIZONTAL_FLOOR_COUNT
    • SURFACE_BLOCKS

      private static final List<Block> SURFACE_BLOCKS
    • NO_VALUE

      protected static final double NO_VALUE
      See Also:
    • oldNoise

      private final boolean oldNoise
    • hasCalculatedData

      private boolean hasCalculatedData
    • heights

      private final double[] heights
    • biomes

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

      private final transient double[][] densities
    • floorDensities

      private final transient double[] floorDensities
    • 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(boolean p_190275_, Optional<double[]> p_190276_)
  • Method Details

    • validateArraySize

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

      public boolean oldNoise()
    • 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 static 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 static double[] getDensityColumn(ChunkAccess p_198293_, int p_198294_, int p_198295_, int p_198296_)
    • 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 static 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_202278_, int p_202279_, BlendingData.BiomeConsumer p_202280_)
    • 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_)
    • getFloorIndex

      private int getFloorIndex(int p_190283_, int p_190284_)
    • cellCountPerColumn

      private static int cellCountPerColumn()
    • getColumnMinY

      private static int getColumnMinY()
    • getMinY

      private static int getMinY()
    • 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_)