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
    • pieceIterator

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

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

    • Beardifier

      public Beardifier(it.unimi.dsi.fastutil.objects.ObjectListIterator<Beardifier.Rigid> p_223917_, it.unimi.dsi.fastutil.objects.ObjectListIterator<JigsawJunction> p_223918_)
  • Method Details

    • forStructuresInChunk

      public static Beardifier forStructuresInChunk(StructureManager p_223938_, ChunkPos p_223939_)
    • 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

      private static double getBuryContribution(double p_328731_, double p_336073_, double p_329819_)
    • getBeardContribution

      protected static double getBeardContribution(int p_223926_, int p_223927_, int p_223928_, int p_223929_)
    • isInKernelRange

      private static boolean isInKernelRange(int p_223920_)
    • computeBeardContribution

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

      private static double computeBeardContribution(int p_223922_, double p_223923_, int p_223924_)