记录类 SculkPatchConfiguration
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.SculkPatchConfiguration
- 所有已实现的接口:
FeatureConfiguration
public record SculkPatchConfiguration(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance)
extends Record
implements FeatureConfiguration
-
字段概要
字段修饰符和类型字段说明private final int
amountPerCharge
记录组件的字段。private final float
catalystChance
记录组件的字段。private final int
chargeCount
记录组件的字段。static final com.mojang.serialization.Codec
<SculkPatchConfiguration> private final IntProvider
extraRareGrowths
记录组件的字段。private final int
growthRounds
记录组件的字段。private final int
spreadAttempts
记录组件的字段。private final int
spreadRounds
记录组件的字段。从接口继承的字段 net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE
-
构造器概要
构造器构造器说明SculkPatchConfiguration
(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance) 创建SculkPatchConfiguration
记录类的实例。 -
方法概要
修饰符和类型方法说明int
返回amountPerCharge
记录组件的值。float
返回catalystChance
记录组件的值。int
返回chargeCount
记录组件的值。final boolean
指示某个其他对象是否“等于”此对象。返回extraRareGrowths
记录组件的值。int
返回growthRounds
记录组件的值。final int
hashCode()
返回此对象的哈希代码值。int
返回spreadAttempts
记录组件的值。int
返回spreadRounds
记录组件的值。final String
toString()
返回此记录类的字符串表示形式。从接口继承的方法 net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
getFeatures
-
字段详细资料
-
chargeCount
private final int chargeCountchargeCount
记录组件的字段。 -
amountPerCharge
private final int amountPerChargeamountPerCharge
记录组件的字段。 -
spreadAttempts
private final int spreadAttemptsspreadAttempts
记录组件的字段。 -
growthRounds
private final int growthRoundsgrowthRounds
记录组件的字段。 -
spreadRounds
private final int spreadRoundsspreadRounds
记录组件的字段。 -
extraRareGrowths
extraRareGrowths
记录组件的字段。 -
catalystChance
private final float catalystChancecatalystChance
记录组件的字段。 -
CODEC
-
-
构造器详细资料
-
SculkPatchConfiguration
public SculkPatchConfiguration(int chargeCount, int amountPerCharge, int spreadAttempts, int growthRounds, int spreadRounds, IntProvider extraRareGrowths, float catalystChance) 创建SculkPatchConfiguration
记录类的实例。- 参数:
chargeCount
-chargeCount
记录组件的值amountPerCharge
-amountPerCharge
记录组件的值spreadAttempts
-spreadAttempts
记录组件的值growthRounds
-growthRounds
记录组件的值spreadRounds
-spreadRounds
记录组件的值extraRareGrowths
-extraRareGrowths
记录组件的值catalystChance
-catalystChance
记录组件的值
-
-
方法详细资料
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)
对参考组件进行比较;使用 '==' 对基元组件进行比较 -
chargeCount
public int chargeCount()返回chargeCount
记录组件的值。- 返回:
chargeCount
记录组件的值
-
amountPerCharge
public int amountPerCharge()返回amountPerCharge
记录组件的值。- 返回:
amountPerCharge
记录组件的值
-
spreadAttempts
public int spreadAttempts()返回spreadAttempts
记录组件的值。- 返回:
spreadAttempts
记录组件的值
-
growthRounds
public int growthRounds()返回growthRounds
记录组件的值。- 返回:
growthRounds
记录组件的值
-
spreadRounds
public int spreadRounds()返回spreadRounds
记录组件的值。- 返回:
spreadRounds
记录组件的值
-
extraRareGrowths
返回extraRareGrowths
记录组件的值。- 返回:
extraRareGrowths
记录组件的值
-
catalystChance
public float catalystChance()返回catalystChance
记录组件的值。- 返回:
catalystChance
记录组件的值
-