Class BlendingData
java.lang.Object
net.minecraft.world.level.levelgen.blending.BlendingData
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
protected static interface
protected static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final double
private final LevelHeightAccessor
private static final double
private static final int
private static final int
private static final int
protected static final int
private static final int
private static final int
protected static final int
protected static final int
private static final int
static final com.mojang.serialization.Codec
<BlendingData> private final double[][]
private static final com.mojang.serialization.Codec
<double[]> private boolean
private final double[]
protected static final double
private static final int
private static final double
-
Constructor Summary
ModifierConstructorDescriptionprivate
BlendingData
(int p_224740_, int p_224741_, Optional<double[]> p_224742_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addValuesForColumn
(int p_190300_, ChunkAccess p_190301_, int p_190302_, int p_190303_) private void
calculateData
(ChunkAccess p_190318_, Set<Direction8> p_190319_) private int
getBiomeColumn
(ChunkAccess p_224758_, int p_224759_, int p_224760_) private int
getCellYIndex
(int p_224747_) private int
private double
getDensity
(double[] p_190325_, int p_190326_) protected double
getDensity
(int p_190334_, int p_190335_, int p_190336_) private double[]
getDensityColumn
(ChunkAccess p_198293_, int p_198294_, int p_198295_, int p_198296_) protected double
getHeight
(int p_190286_, int p_190287_, int p_190288_) private int
getHeightAtXZ
(ChunkAccess p_190311_, int p_190312_, int p_190313_) private static int
getInsideIndex
(int p_190331_, int p_190332_) private int
getMinY()
static BlendingData
getOrUpdateBlendingData
(WorldGenRegion p_190305_, int p_190306_, int p_190307_) private static int
getOutsideIndex
(int p_190351_, int p_190352_) private static int
getX
(int p_190349_) private static int
getZ
(int p_190355_) private static boolean
isGround
(ChunkAccess p_190315_, BlockPos p_190316_) protected void
iterateBiomes
(int p_224749_, int p_224750_, int p_224751_, BlendingData.BiomeConsumer p_224752_) protected void
iterateDensities
(int p_190290_, int p_190291_, int p_190292_, int p_190293_, BlendingData.DensityConsumer p_190294_) protected void
iterateHeights
(int p_190296_, int p_190297_, BlendingData.HeightConsumer p_190298_) private int
private static double
read1
(ChunkAccess p_198298_, BlockPos.MutableBlockPos p_198299_) private static double
read7
(ChunkAccess p_198301_, BlockPos.MutableBlockPos p_198302_) static Set
<Direction8> sideByGenerationAge
(WorldGenLevel p_197066_, int p_197067_, int p_197068_, boolean p_197069_) private static com.mojang.serialization.DataResult
<BlendingData> validateArraySize
(BlendingData p_190321_) private static int
zeroIfNegative
(int p_190357_)
-
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
-
SURFACE_BLOCKS
-
NO_VALUE
protected static final double NO_VALUE- See Also:
-
hasCalculatedData
private boolean hasCalculatedData -
heights
private final double[] heights -
biomes
-
densities
private final transient double[][] densities -
DOUBLE_ARRAY_CODEC
private static final com.mojang.serialization.Codec<double[]> DOUBLE_ARRAY_CODEC -
CODEC
-
-
Constructor Details
-
BlendingData
-
-
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
-
addValuesForColumn
-
getHeightAtXZ
-
read1
-
read7
-
getDensityColumn
private double[] getDensityColumn(ChunkAccess p_198293_, int p_198294_, int p_198295_, int p_198296_) -
getBiomeColumn
-
isGround
-
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
-
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
-