Class Blender
java.lang.Object
net.minecraft.world.level.levelgen.blending.Blender
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
(package private) static interface
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap
<BlendingData> private static final Blender
private static final int
private static final int
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap
<BlendingData> private static final double
private static final NormalNoise
-
Constructor Summary
ConstructorsConstructorDescriptionBlender
(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> p_202197_, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> p_202198_) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAroundOldChunksCarvingMaskFilter
(WorldGenLevel pLevel, ProtoChunk pChunk) blendBiome
(int pX, int pY, int pZ) double
blendDensity
(DensityFunction.FunctionContext pContext, double pDensity) blendOffsetAndFactor
(int pX, int pZ) private static double
distanceToCube
(double pX1, double pY1, double pZ1, double pX2, double pY2, double pZ2) static Blender
empty()
private static void
generateBorderTick
(ChunkAccess pChunk, BlockPos pPos) static void
generateBorderTicks
(WorldGenRegion pRegion, ChunkAccess pChunk) getBiomeResolver
(BiomeResolver pResolver) private double
getBlendingDataValue
(int pX, int pY, int pZ, Blender.CellValueGetter pGetter) private double
getBlendingDataValue
(Blender.CellValueGetter pGetter, int pSectionX, int pSectionZ, int pX, int pY, int pZ) private static double
heightToOffset
(double pHeight) private static Blender.DistanceGetter
makeOffsetOldChunkDistanceGetter
(Direction8 pDirection, BlendingData pBlendingData) static Blender.DistanceGetter
makeOldChunkDistanceGetter
(BlendingData pBlendingData, Map<Direction8, BlendingData> pSurroundingBlendingData) static Blender
of
(WorldGenRegion pRegion)
-
Field Details
-
EMPTY
-
SHIFT_NOISE
-
HEIGHT_BLENDING_RANGE_CELLS
private static final int HEIGHT_BLENDING_RANGE_CELLS -
HEIGHT_BLENDING_RANGE_CHUNKS
private static final int HEIGHT_BLENDING_RANGE_CHUNKS -
DENSITY_BLENDING_RANGE_CELLS
private static final int DENSITY_BLENDING_RANGE_CELLS- See Also:
-
DENSITY_BLENDING_RANGE_CHUNKS
private static final int DENSITY_BLENDING_RANGE_CHUNKS -
OLD_CHUNK_XZ_RADIUS
private static final double OLD_CHUNK_XZ_RADIUS- See Also:
-
heightAndBiomeBlendingData
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> heightAndBiomeBlendingData -
densityBlendingData
-
-
Constructor Details
-
Blender
Blender(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> p_202197_, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> p_202198_)
-
-
Method Details
-
empty
-
of
-
blendOffsetAndFactor
-
heightToOffset
private static double heightToOffset(double pHeight) -
blendDensity
-
getBlendingDataValue
-
getBlendingDataValue
private double getBlendingDataValue(Blender.CellValueGetter pGetter, int pSectionX, int pSectionZ, int pX, int pY, int pZ) -
getBiomeResolver
-
blendBiome
-
generateBorderTicks
-
generateBorderTick
-
addAroundOldChunksCarvingMaskFilter
-
makeOldChunkDistanceGetter
public static Blender.DistanceGetter makeOldChunkDistanceGetter(@Nullable BlendingData pBlendingData, Map<Direction8, BlendingData> pSurroundingBlendingData) -
makeOffsetOldChunkDistanceGetter
private static Blender.DistanceGetter makeOffsetOldChunkDistanceGetter(@Nullable Direction8 pDirection, BlendingData pBlendingData) -
distanceToCube
private static double distanceToCube(double pX1, double pY1, double pZ1, double pX2, double pY2, double pZ2)
-