Class Blender
java.lang.Object
net.minecraft.world.level.levelgen.blending.Blender
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordprivate 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
ConstructorsModifierConstructorDescriptionprivateBlender(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> heightAndBiomeBlendingData, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> densityBlendingData) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAroundOldChunksCarvingMaskFilter(WorldGenLevel region, ProtoChunk chunk) blendBiome(int quartX, int quartY, int quartZ) doubleblendDensity(DensityFunction.FunctionContext context, double noiseValue) blendOffsetAndFactor(int blockX, int blockZ) private static doubledistanceToCube(double x, double y, double z, double radiusX, double radiusY, double radiusZ) static Blenderempty()private static voidgenerateBorderTick(ChunkAccess chunk, BlockPos pos) static voidgenerateBorderTicks(WorldGenRegion region, ChunkAccess chunk) getBiomeResolver(BiomeResolver biomeResolver) private doublegetBlendingDataValue(int cellX, int cellY, int cellZ, Blender.CellValueGetter cellValueGetter) private doublegetBlendingDataValue(Blender.CellValueGetter cellValueGetter, int chunkX, int chunkZ, int cellX, int cellY, int cellZ) private static doubleheightToOffset(double height) booleanisEmpty()private static Blender.DistanceGettermakeOffsetOldChunkDistanceGetter(@Nullable Direction8 offset, BlendingData blendingData) static Blender.DistanceGettermakeOldChunkDistanceGetter(@Nullable BlendingData centerBlendingData, Map<Direction8, BlendingData> oldSidesBlendingData) static Blenderof(@Nullable WorldGenRegion region)
-
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
private Blender(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> heightAndBiomeBlendingData, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> densityBlendingData)
-
-
Method Details
-
empty
-
of
-
isEmpty
public boolean isEmpty() -
blendOffsetAndFactor
-
heightToOffset
private static double heightToOffset(double height) -
blendDensity
-
getBlendingDataValue
private double getBlendingDataValue(int cellX, int cellY, int cellZ, Blender.CellValueGetter cellValueGetter) -
getBlendingDataValue
private double getBlendingDataValue(Blender.CellValueGetter cellValueGetter, int chunkX, int chunkZ, int cellX, int cellY, int cellZ) -
getBiomeResolver
-
blendBiome
-
generateBorderTicks
-
generateBorderTick
-
addAroundOldChunksCarvingMaskFilter
-
makeOldChunkDistanceGetter
public static Blender.DistanceGetter makeOldChunkDistanceGetter(@Nullable BlendingData centerBlendingData, Map<Direction8, BlendingData> oldSidesBlendingData) -
makeOffsetOldChunkDistanceGetter
private static Blender.DistanceGetter makeOffsetOldChunkDistanceGetter(@Nullable Direction8 offset, BlendingData blendingData) -
distanceToCube
private static double distanceToCube(double x, double y, double z, double radiusX, double radiusY, double radiusZ)
-