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
Modifier and TypeFieldDescriptionprivate final int
The field for theamountPerCharge
record component.private final float
The field for thecatalystChance
record component.private final int
The field for thechargeCount
record component.static final com.mojang.serialization.Codec
<SculkPatchConfiguration> private final IntProvider
The field for theextraRareGrowths
record component.private final int
The field for thegrowthRounds
record component.private final int
The field for thespreadAttempts
record component.private final int
The field for thespreadRounds
record component.Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE
-
Constructor Summary
ConstructorDescriptionSculkPatchConfiguration
(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance) Creates an instance of aSculkPatchConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theamountPerCharge
record component.float
Returns the value of thecatalystChance
record component.int
Returns the value of thechargeCount
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theextraRareGrowths
record component.int
Returns the value of thegrowthRounds
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thespreadAttempts
record component.int
Returns the value of thespreadRounds
record component.final String
toString()
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 chargeCountThe field for thechargeCount
record component. -
amountPerCharge
private final int amountPerChargeThe field for theamountPerCharge
record component. -
spreadAttempts
private final int spreadAttemptsThe field for thespreadAttempts
record component. -
growthRounds
private final int growthRoundsThe field for thegrowthRounds
record component. -
spreadRounds
private final int spreadRoundsThe field for thespreadRounds
record component. -
extraRareGrowths
The field for theextraRareGrowths
record component. -
catalystChance
private final float catalystChanceThe field for thecatalystChance
record component. -
CODEC
-
-
Constructor Details
-
SculkPatchConfiguration
public SculkPatchConfiguration(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance) Creates an instance of aSculkPatchConfiguration
record class.- Parameters:
chargeCount
- the value for thechargeCount
record componentamountPerCharge
- the value for theamountPerCharge
record componentspreadAttempts
- the value for thespreadAttempts
record componentgrowthRounds
- the value for thegrowthRounds
record componentspreadRounds
- the value for thespreadRounds
record componentextraRareGrowths
- the value for theextraRareGrowths
record componentcatalystChance
- the value for thecatalystChance
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
chargeCount
public int chargeCount()Returns the value of thechargeCount
record component.- Returns:
- the value of the
chargeCount
record component
-
amountPerCharge
public int amountPerCharge()Returns the value of theamountPerCharge
record component.- Returns:
- the value of the
amountPerCharge
record component
-
spreadAttempts
public int spreadAttempts()Returns the value of thespreadAttempts
record component.- Returns:
- the value of the
spreadAttempts
record component
-
growthRounds
public int growthRounds()Returns the value of thegrowthRounds
record component.- Returns:
- the value of the
growthRounds
record component
-
spreadRounds
public int spreadRounds()Returns the value of thespreadRounds
record component.- Returns:
- the value of the
spreadRounds
record component
-
extraRareGrowths
Returns the value of theextraRareGrowths
record component.- Returns:
- the value of the
extraRareGrowths
record component
-
catalystChance
public float catalystChance()Returns the value of thecatalystChance
record component.- Returns:
- the value of the
catalystChance
record component
-