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
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theamountPerChargerecord component.private final floatThe field for thecatalystChancerecord component.private final intThe field for thechargeCountrecord component.static final com.mojang.serialization.Codec<SculkPatchConfiguration> private final IntProviderThe field for theextraRareGrowthsrecord component.private final intThe field for thegrowthRoundsrecord component.private final intThe field for thespreadAttemptsrecord component.private final intThe field for thespreadRoundsrecord component.Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionSculkPatchConfiguration(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance) Creates an instance of aSculkPatchConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theamountPerChargerecord component.floatReturns the value of thecatalystChancerecord component.intReturns the value of thechargeCountrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextraRareGrowthsrecord component.intReturns the value of thegrowthRoundsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thespreadAttemptsrecord component.intReturns the value of thespreadRoundsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
getFeatures
-
Field Details
-
chargeCount
private final int chargeCountThe field for thechargeCountrecord component. -
amountPerCharge
private final int amountPerChargeThe field for theamountPerChargerecord component. -
spreadAttempts
private final int spreadAttemptsThe field for thespreadAttemptsrecord component. -
growthRounds
private final int growthRoundsThe field for thegrowthRoundsrecord component. -
spreadRounds
private final int spreadRoundsThe field for thespreadRoundsrecord component. -
extraRareGrowths
The field for theextraRareGrowthsrecord component. -
catalystChance
private final float catalystChanceThe field for thecatalystChancerecord 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 aSculkPatchConfigurationrecord class.- Parameters:
chargeCount- the value for thechargeCountrecord componentamountPerCharge- the value for theamountPerChargerecord componentspreadAttempts- the value for thespreadAttemptsrecord componentgrowthRounds- the value for thegrowthRoundsrecord componentspreadRounds- the value for thespreadRoundsrecord componentextraRareGrowths- the value for theextraRareGrowthsrecord componentcatalystChance- the value for thecatalystChancerecord 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 thechargeCountrecord component.- Returns:
- the value of the
chargeCountrecord component
-
amountPerCharge
public int amountPerCharge()Returns the value of theamountPerChargerecord component.- Returns:
- the value of the
amountPerChargerecord component
-
spreadAttempts
public int spreadAttempts()Returns the value of thespreadAttemptsrecord component.- Returns:
- the value of the
spreadAttemptsrecord component
-
growthRounds
public int growthRounds()Returns the value of thegrowthRoundsrecord component.- Returns:
- the value of the
growthRoundsrecord component
-
spreadRounds
public int spreadRounds()Returns the value of thespreadRoundsrecord component.- Returns:
- the value of the
spreadRoundsrecord component
-
extraRareGrowths
Returns the value of theextraRareGrowthsrecord component.- Returns:
- the value of the
extraRareGrowthsrecord component
-
catalystChance
public float catalystChance()Returns the value of thecatalystChancerecord component.- Returns:
- the value of the
catalystChancerecord component
-