Record Class SculkPatchFeatureConfig

java.lang.Object
java.lang.Record
net.minecraft.world.gen.feature.SculkPatchFeatureConfig
Record Components:
chargeCount -
amountPerCharge -
spreadAttempts -
growthRounds -
spreadRounds -
extraRareGrowths -
catalystChance -
All Implemented Interfaces:
FeatureConfig

public record SculkPatchFeatureConfig(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance) extends Record implements FeatureConfig
Mappings:
Namespace Name
official dnb
intermediary net/minecraft/class_7141
named net/minecraft/world/gen/feature/SculkPatchFeatureConfig
official b
intermediary comp_553
named chargeCount
official c
intermediary comp_554
named amountPerCharge
official d
intermediary comp_555
named spreadAttempts
official e
intermediary comp_556
named growthRounds
official f
intermediary comp_557
named spreadRounds
official g
intermediary comp_685
named extraRareGrowths
official h
intermediary comp_558
named catalystChance
  • 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<SculkPatchFeatureConfig> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldnb;a:Lcom/mojang/serialization/Codec;
      intermediary field_37710 Lnet/minecraft/class_7141;field_37710:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/feature/SculkPatchFeatureConfig;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • SculkPatchFeatureConfig

      public SculkPatchFeatureConfig(int int2, int int3, int int4, int int5, int int6, IntProvider intProvider, float float2)
  • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object 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