Record Class SculkPatchConfiguration

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

public record SculkPatchConfiguration(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance) extends Record implements FeatureConfiguration
  • Field Details

    • chargeCount

      private final int chargeCount
      The field for the chargeCount record component.
    • amountPerCharge

      private final int amountPerCharge
      The field for the amountPerCharge record component.
    • spreadAttempts

      private final int spreadAttempts
      The field for the spreadAttempts record component.
    • growthRounds

      private final int growthRounds
      The field for the growthRounds record component.
    • spreadRounds

      private final int spreadRounds
      The field for the spreadRounds record component.
    • extraRareGrowths

      private final IntProvider extraRareGrowths
      The field for the extraRareGrowths record component.
    • catalystChance

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

      public static final Codec<SculkPatchConfiguration> CODEC
  • Constructor Details

    • SculkPatchConfiguration

      public SculkPatchConfiguration(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance)
      Creates an instance of a SculkPatchConfiguration record class.
      Parameters:
      chargeCount - the value for the chargeCount record component
      amountPerCharge - the value for the amountPerCharge record component
      spreadAttempts - the value for the spreadAttempts record component
      growthRounds - the value for the growthRounds record component
      spreadRounds - the value for the spreadRounds record component
      extraRareGrowths - the value for the extraRareGrowths record component
      catalystChance - the value for the catalystChance 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.
    • chargeCount

      public int chargeCount()
      Returns the value of the chargeCount record component.
      Returns:
      the value of the chargeCount record component
    • amountPerCharge

      public int amountPerCharge()
      Returns the value of the amountPerCharge record component.
      Returns:
      the value of the amountPerCharge record component
    • spreadAttempts

      public int spreadAttempts()
      Returns the value of the spreadAttempts record component.
      Returns:
      the value of the spreadAttempts record component
    • growthRounds

      public int growthRounds()
      Returns the value of the growthRounds record component.
      Returns:
      the value of the growthRounds record component
    • spreadRounds

      public int spreadRounds()
      Returns the value of the spreadRounds record component.
      Returns:
      the value of the spreadRounds record component
    • extraRareGrowths

      public IntProvider extraRareGrowths()
      Returns the value of the extraRareGrowths record component.
      Returns:
      the value of the extraRareGrowths record component
    • catalystChance

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