Package net.minecraft.world.gen.feature
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 named net/minecraft/world/gen/feature/SculkPatchFeatureConfigintermediary net/minecraft/class_7141official eeznamed chargeCountintermediary comp_553official bnamed amountPerChargeintermediary comp_554official cnamed spreadAttemptsintermediary comp_555official dnamed growthRoundsintermediary comp_556official enamed spreadRoundsintermediary comp_557official fnamed extraRareGrowthsintermediary comp_685official gnamed catalystChanceintermediary comp_558official h
-
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<SculkPatchFeatureConfig> 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.gen.feature.FeatureConfig
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionSculkPatchFeatureConfig(int int2, int int3, int int4, int int5, int int6, IntProvider intProvider, float float2) -
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.gen.feature.FeatureConfig
getDecoratedFeatures
-
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
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/gen/feature/SculkPatchFeatureConfig;CODEC:Lcom/mojang/serialization/Codec;intermediary field_37710Lnet/minecraft/class_7141;field_37710:Lcom/mojang/serialization/Codec;official aLeez;a: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
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
-