Record Class FeatureConfiguration.SculkPatchConfiguration
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.feature.config.FeatureConfiguration.SculkPatchConfiguration
- All Implemented Interfaces:
Wrapper, FeatureConfiguration
- Enclosing interface:
FeatureConfiguration
@AsOf("3.0.0")
public static record FeatureConfiguration.SculkPatchConfiguration(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance)
extends Record
implements FeatureConfiguration
A sculk patch.
- Since:
- 3.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classNested classes/interfaces inherited from interface FeatureConfiguration
FeatureConfiguration.ColumnConfiguration, FeatureConfiguration.CountConfiguration, FeatureConfiguration.DripstoneClusterConfiguration, FeatureConfiguration.Factory, FeatureConfiguration.LargeDripstoneConfiguration, FeatureConfiguration.NoneConfiguration, FeatureConfiguration.PointedDripstoneConfiguration, FeatureConfiguration.ProbabilityConfiguration, FeatureConfiguration.SculkPatchConfigurationNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface FeatureConfiguration
WIRE -
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.builder()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 interface FeatureConfiguration
toMinecraft
-
Constructor Details
-
SculkPatchConfiguration
@AsOf("3.0.0") 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
-
builder
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-