java.lang.Object
net.minecraft.world.level.levelgen.blending.Blender

public class Blender extends Object
  • Field Details

    • EMPTY

      private static final Blender EMPTY
    • SHIFT_NOISE

      private static final NormalNoise 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

      private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> densityBlendingData
  • Constructor Details

    • Blender

      Blender(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> pHeightAndBiomeBlendingData, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<BlendingData> pDensityBlendingData)
  • Method Details

    • empty

      public static Blender empty()
    • of

      public static Blender of(@Nullable WorldGenRegion pRegion)
    • isEmpty

      public boolean isEmpty()
    • blendOffsetAndFactor

      public Blender.BlendingOutput blendOffsetAndFactor(int pX, int pZ)
    • heightToOffset

      private static double heightToOffset(double pHeight)
    • blendDensity

      public double blendDensity(DensityFunction.FunctionContext pContext, double pDensity)
    • getBlendingDataValue

      private double getBlendingDataValue(int pX, int pY, int pZ, Blender.CellValueGetter pGetter)
    • getBlendingDataValue

      private double getBlendingDataValue(Blender.CellValueGetter pGetter, int pSectionX, int pSectionZ, int pX, int pY, int pZ)
    • getBiomeResolver

      public BiomeResolver getBiomeResolver(BiomeResolver pResolver)
    • blendBiome

      @Nullable private Holder<Biome> blendBiome(int pX, int pY, int pZ)
    • generateBorderTicks

      public static void generateBorderTicks(WorldGenRegion pRegion, ChunkAccess pChunk)
    • generateBorderTick

      private static void generateBorderTick(ChunkAccess pChunk, BlockPos pPos)
    • addAroundOldChunksCarvingMaskFilter

      public static void addAroundOldChunksCarvingMaskFilter(WorldGenLevel pLevel, ProtoChunk pChunk)
    • 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)