Record Class SpeleothemConfiguration

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

public record SpeleothemConfiguration(BlockState baseBlock, BlockState pointedBlock, HolderSet<Block> replaceableBlocks, float chanceOfTallerGeneration, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3) 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.
    • chanceOfTallerGeneration

      private final float chanceOfTallerGeneration
      The field for the chanceOfTallerGeneration record component.
    • chanceOfDirectionalSpread

      private final float chanceOfDirectionalSpread
      The field for the chanceOfDirectionalSpread record component.
    • chanceOfSpreadRadius2

      private final float chanceOfSpreadRadius2
      The field for the chanceOfSpreadRadius2 record component.
    • chanceOfSpreadRadius3

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

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

    • SpeleothemConfiguration

      public SpeleothemConfiguration(BlockState baseBlock, BlockState pointedBlock, HolderSet<Block> replaceableBlocks, float chanceOfTallerGeneration, float chanceOfDirectionalSpread, float chanceOfSpreadRadius2, float chanceOfSpreadRadius3)
      Creates an instance of a SpeleothemConfiguration 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
      chanceOfTallerGeneration - the value for the chanceOfTallerGeneration record component
      chanceOfDirectionalSpread - the value for the chanceOfDirectionalSpread record component
      chanceOfSpreadRadius2 - the value for the chanceOfSpreadRadius2 record component
      chanceOfSpreadRadius3 - the value for the chanceOfSpreadRadius3 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
    • chanceOfTallerGeneration

      public float chanceOfTallerGeneration()
      Returns the value of the chanceOfTallerGeneration record component.
      Returns:
      the value of the chanceOfTallerGeneration record component
    • chanceOfDirectionalSpread

      public float chanceOfDirectionalSpread()
      Returns the value of the chanceOfDirectionalSpread record component.
      Returns:
      the value of the chanceOfDirectionalSpread record component
    • chanceOfSpreadRadius2

      public float chanceOfSpreadRadius2()
      Returns the value of the chanceOfSpreadRadius2 record component.
      Returns:
      the value of the chanceOfSpreadRadius2 record component
    • chanceOfSpreadRadius3

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