Class Beardifier

java.lang.Object
net.minecraft.world.level.levelgen.Beardifier
All Implemented Interfaces:
DensityFunction, DensityFunction.SimpleFunction, DensityFunctions.BeardifierOrMarker

public class Beardifier extends Object implements DensityFunctions.BeardifierOrMarker
  • Field Details

    • BEARD_KERNEL_RADIUS

      public static final int BEARD_KERNEL_RADIUS
      See Also:
    • BEARD_KERNEL_SIZE

      private static final int BEARD_KERNEL_SIZE
      See Also:
    • BEARD_KERNEL

      private static final float[] BEARD_KERNEL
    • rigids

      protected final it.unimi.dsi.fastutil.objects.ObjectList<StructurePiece> rigids
    • junctions

      protected final it.unimi.dsi.fastutil.objects.ObjectList<JigsawJunction> junctions
    • pieceIterator

      protected final it.unimi.dsi.fastutil.objects.ObjectListIterator<StructurePiece> pieceIterator
    • junctionIterator

      protected final it.unimi.dsi.fastutil.objects.ObjectListIterator<JigsawJunction> junctionIterator
  • Constructor Details

  • Method Details

    • compute

      public double compute(DensityFunction.FunctionContext p_208200_)
      Specified by:
      compute in interface DensityFunction
    • minValue

      public double minValue()
      Specified by:
      minValue in interface DensityFunction
    • maxValue

      public double maxValue()
      Specified by:
      maxValue in interface DensityFunction
    • getBuryContribution

      protected static double getBuryContribution(int p_158084_, int p_158085_, int p_158086_)
    • getBeardContribution

      protected static double getBeardContribution(int p_158088_, int p_158089_, int p_158090_)
    • computeBeardContribution

      private static double computeBeardContribution(int p_158092_, int p_158093_, int p_158094_)