Class Beardifier

java.lang.Object
net.minecraft.world.level.levelgen.Beardifier
All Implemented Interfaces:
DensitySampler

public class Beardifier extends Object implements DensitySampler
  • Field Details

  • Constructor Details

  • Method Details

    • forStructuresInChunk

      public static Beardifier forStructuresInChunk(StructureManager structureManager, ChunkPos chunkPos)
    • includeBoundingBox

      private static BoundingBox includeBoundingBox(@Nullable BoundingBox encompassingBox, BoundingBox newBox)
    • sampleVolume

      public void sampleVolume(SamplerContext context, DensityBuffer outputBuffer, DensityVolume volume)
      Specified by:
      sampleVolume in interface DensitySampler
    • sampleValue

      public float sampleValue(SamplerContext context, int blockX, int blockY, int blockZ)
      Specified by:
      sampleValue in interface DensitySampler
    • sampleValueUnchecked

      private float sampleValueUnchecked(int blockX, int blockY, int blockZ)
    • getBuryContribution

      protected static float getBuryContribution(float dx, float dy, float dz)
    • getBeardContribution

      protected static float getBeardContribution(int dx, int dy, int dz, int yToGround)
    • isInKernelRange

      private static boolean isInKernelRange(int xi)
    • computeBeardContribution

      private static double computeBeardContribution(int dx, int dy, int dz)
    • computeBeardContribution

      private static double computeBeardContribution(int dx, double dy, int dz)