Record Class SpeleothemClusterConfiguration

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.SpeleothemClusterConfiguration
All Implemented Interfaces:
FeatureConfiguration

public record SpeleothemClusterConfiguration(BlockState baseBlock, BlockState pointedBlock, HolderSet<Block> replaceableBlocks, int floorToCeilingSearchRange, IntProvider height, IntProvider radius, int maxStalagmiteStalactiteHeightDiff, int heightDeviation, IntProvider speleothemBlockLayerThickness, FloatProvider density, FloatProvider wetness, float chanceOfSpeleothemAtMaxDistanceFromCenter, int maxDistanceFromEdgeAffectingChanceOfSpeleothem, int maxDistanceFromCenterAffectingHeightBias) extends Record implements FeatureConfiguration
  • Field Details

    • baseBlock

      private final BlockState baseBlock
      The field for the baseBlock record component.
    • pointedBlock

      private final BlockState pointedBlock
      The field for the pointedBlock record component.
    • 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.
    • height

      private final IntProvider height
      The field for the height record component.
    • radius

      private final IntProvider radius
      The field for the radius record component.
    • maxStalagmiteStalactiteHeightDiff

      private final int maxStalagmiteStalactiteHeightDiff
      The field for the maxStalagmiteStalactiteHeightDiff record component.
    • heightDeviation

      private final int heightDeviation
      The field for the heightDeviation record component.
    • speleothemBlockLayerThickness

      private final IntProvider speleothemBlockLayerThickness
      The field for the speleothemBlockLayerThickness record component.
    • density

      private final FloatProvider density
      The field for the density record component.
    • wetness

      private final FloatProvider wetness
      The field for the wetness record component.
    • chanceOfSpeleothemAtMaxDistanceFromCenter

      private final float chanceOfSpeleothemAtMaxDistanceFromCenter
      The field for the chanceOfSpeleothemAtMaxDistanceFromCenter record component.
    • maxDistanceFromEdgeAffectingChanceOfSpeleothem

      private final int maxDistanceFromEdgeAffectingChanceOfSpeleothem
      The field for the maxDistanceFromEdgeAffectingChanceOfSpeleothem record component.
    • maxDistanceFromCenterAffectingHeightBias

      private final int maxDistanceFromCenterAffectingHeightBias
      The field for the maxDistanceFromCenterAffectingHeightBias record component.
    • CODEC

      public static final com.mojang.serialization.Codec<SpeleothemClusterConfiguration> CODEC
  • Constructor Details

    • SpeleothemClusterConfiguration

      public SpeleothemClusterConfiguration(BlockState baseBlock, BlockState pointedBlock, HolderSet<Block> replaceableBlocks, int floorToCeilingSearchRange, IntProvider height, IntProvider radius, int maxStalagmiteStalactiteHeightDiff, int heightDeviation, IntProvider speleothemBlockLayerThickness, FloatProvider density, FloatProvider wetness, float chanceOfSpeleothemAtMaxDistanceFromCenter, int maxDistanceFromEdgeAffectingChanceOfSpeleothem, int maxDistanceFromCenterAffectingHeightBias)
      Creates an instance of a SpeleothemClusterConfiguration record class.
      Parameters:
      baseBlock - the value for the baseBlock record component
      pointedBlock - the value for the pointedBlock record component
      replaceableBlocks - the value for the replaceableBlocks record component
      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
      speleothemBlockLayerThickness - the value for the speleothemBlockLayerThickness record component
      density - the value for the density record component
      wetness - the value for the wetness record component
      chanceOfSpeleothemAtMaxDistanceFromCenter - the value for the chanceOfSpeleothemAtMaxDistanceFromCenter record component
      maxDistanceFromEdgeAffectingChanceOfSpeleothem - the value for the maxDistanceFromEdgeAffectingChanceOfSpeleothem record component
      maxDistanceFromCenterAffectingHeightBias - the value for the maxDistanceFromCenterAffectingHeightBias record component
  • Method Details

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

      public BlockState baseBlock()
      Returns the value of the baseBlock record component.
      Returns:
      the value of the baseBlock record component
    • pointedBlock

      public BlockState pointedBlock()
      Returns the value of the pointedBlock record component.
      Returns:
      the value of the pointedBlock record component
    • 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
    • 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
    • speleothemBlockLayerThickness

      public IntProvider speleothemBlockLayerThickness()
      Returns the value of the speleothemBlockLayerThickness record component.
      Returns:
      the value of the speleothemBlockLayerThickness 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
    • chanceOfSpeleothemAtMaxDistanceFromCenter

      public float chanceOfSpeleothemAtMaxDistanceFromCenter()
      Returns the value of the chanceOfSpeleothemAtMaxDistanceFromCenter record component.
      Returns:
      the value of the chanceOfSpeleothemAtMaxDistanceFromCenter record component
    • maxDistanceFromEdgeAffectingChanceOfSpeleothem

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

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