Class Blender
java.lang.Object
net.minecraft.world.level.levelgen.blending.Blender
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
(package private) static interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData>
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData>
private static final int
private static final int
private static final Blender
private static final int
private static final int
private static final double
private static final double
private static final double
private static final NormalNoise
-
Constructor Summary
ConstructorDescriptionBlender
(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 p_197035_, ProtoChunk p_197036_) blendBiome
(int p_204665_, int p_204666_) double
blendDensity
(DensityFunction.FunctionContext p_209721_, double p_209722_) blendOffsetAndFactor
(int p_209719_, int p_209720_) private static double
distanceToCube
(double p_197025_, double p_197026_, double p_197027_, double p_197028_, double p_197029_, double p_197030_) static Blender
empty()
private static void
generateBorderTick
(ChunkAccess p_197041_, BlockPos p_197042_) static void
generateBorderTicks
(WorldGenRegion p_197032_, ChunkAccess p_197033_) getBiomeResolver
(BiomeResolver p_190204_) private double
getBlendingDataValue
(int p_190175_, int p_190176_, int p_190177_, Blender.CellValueGetter p_190178_) private double
getBlendingDataValue
(Blender.CellValueGetter p_190212_, int p_190213_, int p_190214_, int p_190215_, int p_190216_, int p_190217_) private static double
heightToOffset
(double p_190155_) private static Blender.DistanceGetter
makeOffsetOldChunkDistanceGetter
(Direction8 p_197049_) static Blender.DistanceGetter
makeOldChunkDistanceGetter
(boolean p_197059_, Set<Direction8> p_197060_) static Blender
of
(WorldGenRegion p_190203_)
-
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_Y_RADIUS
private static final double OLD_CHUNK_Y_RADIUS -
OLD_CHUNK_CENTER_Y
private static final double OLD_CHUNK_CENTER_Y -
OLD_CHUNK_XZ_RADIUS
private static final double OLD_CHUNK_XZ_RADIUS- See Also:
-
blendingData
-
blendingDataForDensityBlending
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> blendingDataForDensityBlending
-
-
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 p_190155_) -
blendDensity
-
getBlendingDataValue
private double getBlendingDataValue(int p_190175_, int p_190176_, int p_190177_, Blender.CellValueGetter p_190178_) -
getBlendingDataValue
private double getBlendingDataValue(Blender.CellValueGetter p_190212_, int p_190213_, int p_190214_, int p_190215_, int p_190216_, int p_190217_) -
getBiomeResolver
-
blendBiome
-
generateBorderTicks
-
generateBorderTick
-
addAroundOldChunksCarvingMaskFilter
public static void addAroundOldChunksCarvingMaskFilter(WorldGenLevel p_197035_, ProtoChunk p_197036_) -
makeOldChunkDistanceGetter
@Nullable public static Blender.DistanceGetter makeOldChunkDistanceGetter(boolean p_197059_, Set<Direction8> p_197060_) -
makeOffsetOldChunkDistanceGetter
private static Blender.DistanceGetter makeOffsetOldChunkDistanceGetter(@Nullable Direction8 p_197049_) -
distanceToCube
private static double distanceToCube(double p_197025_, double p_197026_, double p_197027_, double p_197028_, double p_197029_, double p_197030_)
-