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 Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the amountPerCharge record component.
    private final float
    The field for the catalystChance record component.
    private final int
    The field for the chargeCount record component.
    static final com.mojang.serialization.Codec<SculkPatchConfiguration>
     
    private final IntProvider
    The field for the extraRareGrowths record component.
    private final int
    The field for the growthRounds record component.
    private final int
    The field for the spreadAttempts record component.
    private final int
    The field for the spreadRounds record component.

    Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    SculkPatchConfiguration(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance)
    Creates an instance of a SculkPatchConfiguration record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the amountPerCharge record component.
    float
    Returns the value of the catalystChance record component.
    int
    Returns the value of the chargeCount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the extraRareGrowths record component.
    int
    Returns the value of the growthRounds record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the spreadAttempts record component.
    int
    Returns the value of the spreadRounds record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration

    getFeatures
  • 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 com.mojang.serialization.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 '=='.
      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