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 SummaryFieldsModifier 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.FeatureConfigurationNONE
- 
Constructor SummaryConstructorsConstructorDescriptionSculkPatchConfiguration(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance) Creates an instance of aSculkPatchConfigurationrecord class.
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfigurationgetFeatures
- 
Field Details- 
chargeCountprivate final int chargeCountThe field for thechargeCountrecord component.
- 
amountPerChargeprivate final int amountPerChargeThe field for theamountPerChargerecord component.
- 
spreadAttemptsprivate final int spreadAttemptsThe field for thespreadAttemptsrecord component.
- 
growthRoundsprivate final int growthRoundsThe field for thegrowthRoundsrecord component.
- 
spreadRoundsprivate final int spreadRoundsThe field for thespreadRoundsrecord component.
- 
extraRareGrowthsThe field for theextraRareGrowthsrecord component.
- 
catalystChanceprivate final float catalystChanceThe field for thecatalystChancerecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
SculkPatchConfigurationpublic 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 the- chargeCountrecord component
- amountPerCharge- the value for the- amountPerChargerecord component
- spreadAttempts- the value for the- spreadAttemptsrecord component
- growthRounds- the value for the- growthRoundsrecord component
- spreadRounds- the value for the- spreadRoundsrecord component
- extraRareGrowths- the value for the- extraRareGrowthsrecord component
- catalystChance- the value for the- catalystChancerecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
chargeCountpublic int chargeCount()Returns the value of thechargeCountrecord component.- Returns:
- the value of the chargeCountrecord component
 
- 
amountPerChargepublic int amountPerCharge()Returns the value of theamountPerChargerecord component.- Returns:
- the value of the amountPerChargerecord component
 
- 
spreadAttemptspublic int spreadAttempts()Returns the value of thespreadAttemptsrecord component.- Returns:
- the value of the spreadAttemptsrecord component
 
- 
growthRoundspublic int growthRounds()Returns the value of thegrowthRoundsrecord component.- Returns:
- the value of the growthRoundsrecord component
 
- 
spreadRoundspublic int spreadRounds()Returns the value of thespreadRoundsrecord component.- Returns:
- the value of the spreadRoundsrecord component
 
- 
extraRareGrowthsReturns the value of theextraRareGrowthsrecord component.- Returns:
- the value of the extraRareGrowthsrecord component
 
- 
catalystChancepublic float catalystChance()Returns the value of thecatalystChancerecord component.- Returns:
- the value of the catalystChancerecord component
 
 
-