Record Class LargeDripstoneFeature

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.LargeDripstoneFeature
All Implemented Interfaces:
Feature

public record LargeDripstoneFeature(HolderSet<Block> replaceableBlocks, int floorToCeilingSearchRange, IntProvider columnRadius, FloatProvider heightScale, float maxColumnRadiusToCaveHeightRatio, FloatProvider stalactiteBluntness, FloatProvider stalagmiteBluntness, FloatProvider windSpeed, int minRadiusForWind, float minBluntnessForWind) extends Record implements Feature
  • Field Details

    • replaceableBlocks

      private final HolderSet<Block> replaceableBlocks
      The field for the replaceableBlocks record component.
    • floorToCeilingSearchRange

      private final int floorToCeilingSearchRange
      The field for the floorToCeilingSearchRange record component.
    • columnRadius

      private final IntProvider columnRadius
      The field for the columnRadius record component.
    • heightScale

      private final FloatProvider heightScale
      The field for the heightScale record component.
    • maxColumnRadiusToCaveHeightRatio

      private final float maxColumnRadiusToCaveHeightRatio
      The field for the maxColumnRadiusToCaveHeightRatio record component.
    • stalactiteBluntness

      private final FloatProvider stalactiteBluntness
      The field for the stalactiteBluntness record component.
    • stalagmiteBluntness

      private final FloatProvider stalagmiteBluntness
      The field for the stalagmiteBluntness record component.
    • windSpeed

      private final FloatProvider windSpeed
      The field for the windSpeed record component.
    • minRadiusForWind

      private final int minRadiusForWind
      The field for the minRadiusForWind record component.
    • minBluntnessForWind

      private final float minBluntnessForWind
      The field for the minBluntnessForWind record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<LargeDripstoneFeature> CODEC
  • Constructor Details

    • LargeDripstoneFeature

      public LargeDripstoneFeature(HolderSet<Block> replaceableBlocks, int floorToCeilingSearchRange, IntProvider columnRadius, FloatProvider heightScale, float maxColumnRadiusToCaveHeightRatio, FloatProvider stalactiteBluntness, FloatProvider stalagmiteBluntness, FloatProvider windSpeed, int minRadiusForWind, float minBluntnessForWind)
      Creates an instance of a LargeDripstoneFeature record class.
      Parameters:
      replaceableBlocks - the value for the replaceableBlocks record component
      floorToCeilingSearchRange - the value for the floorToCeilingSearchRange record component
      columnRadius - the value for the columnRadius record component
      heightScale - the value for the heightScale record component
      maxColumnRadiusToCaveHeightRatio - the value for the maxColumnRadiusToCaveHeightRatio record component
      stalactiteBluntness - the value for the stalactiteBluntness record component
      stalagmiteBluntness - the value for the stalagmiteBluntness record component
      windSpeed - the value for the windSpeed record component
      minRadiusForWind - the value for the minRadiusForWind record component
      minBluntnessForWind - the value for the minBluntnessForWind record component
  • Method Details

    • codec

      public com.mojang.serialization.MapCodec<LargeDripstoneFeature> codec()
      Specified by:
      codec in interface Feature
    • place

      public boolean place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin)
      Specified by:
      place in interface Feature
    • makeDripstone

      private static LargeDripstoneFeature.LargeDripstone makeDripstone(BlockPos root, boolean pointingUp, RandomSource random, int radius, FloatProvider bluntness, FloatProvider heightScale)
    • placeDebugMarkers

      private void placeDebugMarkers(WorldGenLevel level, BlockPos origin, Column.Range range, LargeDripstoneFeature.WindOffsetter wind)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • replaceableBlocks

      public HolderSet<Block> replaceableBlocks()
      Returns the value of the replaceableBlocks record component.
      Returns:
      the value of the replaceableBlocks record component
    • floorToCeilingSearchRange

      public int floorToCeilingSearchRange()
      Returns the value of the floorToCeilingSearchRange record component.
      Returns:
      the value of the floorToCeilingSearchRange record component
    • columnRadius

      public IntProvider columnRadius()
      Returns the value of the columnRadius record component.
      Returns:
      the value of the columnRadius record component
    • heightScale

      public FloatProvider heightScale()
      Returns the value of the heightScale record component.
      Returns:
      the value of the heightScale record component
    • maxColumnRadiusToCaveHeightRatio

      public float maxColumnRadiusToCaveHeightRatio()
      Returns the value of the maxColumnRadiusToCaveHeightRatio record component.
      Returns:
      the value of the maxColumnRadiusToCaveHeightRatio record component
    • stalactiteBluntness

      public FloatProvider stalactiteBluntness()
      Returns the value of the stalactiteBluntness record component.
      Returns:
      the value of the stalactiteBluntness record component
    • stalagmiteBluntness

      public FloatProvider stalagmiteBluntness()
      Returns the value of the stalagmiteBluntness record component.
      Returns:
      the value of the stalagmiteBluntness record component
    • windSpeed

      public FloatProvider windSpeed()
      Returns the value of the windSpeed record component.
      Returns:
      the value of the windSpeed record component
    • minRadiusForWind

      public int minRadiusForWind()
      Returns the value of the minRadiusForWind record component.
      Returns:
      the value of the minRadiusForWind record component
    • minBluntnessForWind

      public float minBluntnessForWind()
      Returns the value of the minBluntnessForWind record component.
      Returns:
      the value of the minBluntnessForWind record component