Record Class FeatureConfiguration.DripstoneClusterConfiguration

java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.feature.config.FeatureConfiguration.DripstoneClusterConfiguration
All Implemented Interfaces:
Wrapper, FeatureConfiguration
Enclosing interface:
FeatureConfiguration

@AsOf("3.0.0") public static record FeatureConfiguration.DripstoneClusterConfiguration(int floorToCeilingSearchRange, IntProvider height, IntProvider radius, int maxStalagmiteStalactiteHeightDiff, int heightDeviation, IntProvider dripstoneBlockLayerThickness, FloatProvider density, FloatProvider wetness, float chanceOfDripstoneColumnAtMaxDistanceFromCenter, int maxDistanceFromEdgeAffectingChanceOfDripstoneColumn, int maxDistanceFromCenterAffectingHeightBias) extends Record implements FeatureConfiguration
A dripstone cluster.
Since:
3.0.0
  • Constructor Details

    • DripstoneClusterConfiguration

      @AsOf("3.0.0") public DripstoneClusterConfiguration(int floorToCeilingSearchRange, IntProvider height, IntProvider radius, int maxStalagmiteStalactiteHeightDiff, int heightDeviation, IntProvider dripstoneBlockLayerThickness, FloatProvider density, FloatProvider wetness, float chanceOfDripstoneColumnAtMaxDistanceFromCenter, int maxDistanceFromEdgeAffectingChanceOfDripstoneColumn, int maxDistanceFromCenterAffectingHeightBias)
      Creates an instance of a DripstoneClusterConfiguration record class.
      Parameters:
      floorToCeilingSearchRange - the value for the floorToCeilingSearchRange record component
      height - the value for the height record component
      radius - the value for the radius record component
      maxStalagmiteStalactiteHeightDiff - the value for the maxStalagmiteStalactiteHeightDiff record component
      heightDeviation - the value for the heightDeviation record component
      dripstoneBlockLayerThickness - the value for the dripstoneBlockLayerThickness record component
      density - the value for the density record component
      wetness - the value for the wetness record component
      chanceOfDripstoneColumnAtMaxDistanceFromCenter - the value for the chanceOfDripstoneColumnAtMaxDistanceFromCenter record component
      maxDistanceFromEdgeAffectingChanceOfDripstoneColumn - the value for the maxDistanceFromEdgeAffectingChanceOfDripstoneColumn record component
      maxDistanceFromCenterAffectingHeightBias - the value for the maxDistanceFromCenterAffectingHeightBias record component
  • Method Details

    • builder

    • 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.
    • floorToCeilingSearchRange

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

      public IntProvider height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • radius

      public IntProvider radius()
      Returns the value of the radius record component.
      Returns:
      the value of the radius record component
    • maxStalagmiteStalactiteHeightDiff

      public int maxStalagmiteStalactiteHeightDiff()
      Returns the value of the maxStalagmiteStalactiteHeightDiff record component.
      Returns:
      the value of the maxStalagmiteStalactiteHeightDiff record component
    • heightDeviation

      public int heightDeviation()
      Returns the value of the heightDeviation record component.
      Returns:
      the value of the heightDeviation record component
    • dripstoneBlockLayerThickness

      public IntProvider dripstoneBlockLayerThickness()
      Returns the value of the dripstoneBlockLayerThickness record component.
      Returns:
      the value of the dripstoneBlockLayerThickness record component
    • density

      public FloatProvider density()
      Returns the value of the density record component.
      Returns:
      the value of the density record component
    • wetness

      public FloatProvider wetness()
      Returns the value of the wetness record component.
      Returns:
      the value of the wetness record component
    • chanceOfDripstoneColumnAtMaxDistanceFromCenter

      public float chanceOfDripstoneColumnAtMaxDistanceFromCenter()
      Returns the value of the chanceOfDripstoneColumnAtMaxDistanceFromCenter record component.
      Returns:
      the value of the chanceOfDripstoneColumnAtMaxDistanceFromCenter record component
    • maxDistanceFromEdgeAffectingChanceOfDripstoneColumn

      public int maxDistanceFromEdgeAffectingChanceOfDripstoneColumn()
      Returns the value of the maxDistanceFromEdgeAffectingChanceOfDripstoneColumn record component.
      Returns:
      the value of the maxDistanceFromEdgeAffectingChanceOfDripstoneColumn record component
    • maxDistanceFromCenterAffectingHeightBias

      public int maxDistanceFromCenterAffectingHeightBias()
      Returns the value of the maxDistanceFromCenterAffectingHeightBias record component.
      Returns:
      the value of the maxDistanceFromCenterAffectingHeightBias record component