Class Blender
java.lang.Object
net.minecraft.world.level.levelgen.blending.Blender
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record(package private) static interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> private static final Blenderprivate static final intprivate static final intprivate final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> private static final doubleprivate static final NormalNoise -
Constructor Summary
ConstructorsConstructorDescriptionBlender(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> pHeightAndBiomeBlendingData, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> pDensityBlendingData) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAroundOldChunksCarvingMaskFilter(WorldGenLevel pLevel, ProtoChunk pChunk) blendBiome(int pX, int pY, int pZ) doubleblendDensity(DensityFunction.FunctionContext pContext, double pDensity) blendOffsetAndFactor(int pX, int pZ) private static doubledistanceToCube(double pX1, double pY1, double pZ1, double pX2, double pY2, double pZ2) static Blenderempty()private static voidgenerateBorderTick(ChunkAccess pChunk, BlockPos pPos) static voidgenerateBorderTicks(WorldGenRegion pRegion, ChunkAccess pChunk) getBiomeResolver(BiomeResolver pResolver) private doublegetBlendingDataValue(int pX, int pY, int pZ, Blender.CellValueGetter pGetter) private doublegetBlendingDataValue(Blender.CellValueGetter pGetter, int pSectionX, int pSectionZ, int pX, int pY, int pZ) private static doubleheightToOffset(double pHeight) booleanisEmpty()private static Blender.DistanceGettermakeOffsetOldChunkDistanceGetter(Direction8 pDirection, BlendingData pBlendingData) static Blender.DistanceGettermakeOldChunkDistanceGetter(BlendingData pBlendingData, Map<Direction8, BlendingData> pSurroundingBlendingData) static Blenderof(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> pHeightAndBiomeBlendingData, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> pDensityBlendingData)
-
-
Method Details
-
empty
-
of
-
isEmpty
public boolean isEmpty() -
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)
-