记录类 ModifiableBiomeInfo.BiomeInfo
java.lang.Object
java.lang.Record
net.neoforged.neoforge.common.world.ModifiableBiomeInfo.BiomeInfo
- 记录组件:
climateSettings
- Weather and temperature settings.effects
- Client-relevant effects for rendering and sound.generationSettings
- Worldgen features and carvers.mobSpawnSettings
- Mob spawn settings.
- 封闭类:
ModifiableBiomeInfo
public static record ModifiableBiomeInfo.BiomeInfo(Biome.ClimateSettings climateSettings, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSpawnSettings)
extends Record
Record containing raw biome data.
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final Biome.ClimateSettings
climateSettings
记录组件的字段。private final BiomeSpecialEffects
effects
记录组件的字段。private final BiomeGenerationSettings
generationSettings
记录组件的字段。private final MobSpawnSettings
mobSpawnSettings
记录组件的字段。 -
构造器概要
构造器构造器说明BiomeInfo
(Biome.ClimateSettings climateSettings, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSpawnSettings) 创建BiomeInfo
记录类的实例。 -
方法概要
修饰符和类型方法说明返回climateSettings
记录组件的值。effects()
返回effects
记录组件的值。final boolean
指示某个其他对象是否“等于”此对象。返回generationSettings
记录组件的值。final int
hashCode()
返回此对象的哈希代码值。返回mobSpawnSettings
记录组件的值。final String
toString()
返回此记录类的字符串表示形式。
-
字段详细资料
-
climateSettings
climateSettings
记录组件的字段。 -
effects
effects
记录组件的字段。 -
generationSettings
generationSettings
记录组件的字段。 -
mobSpawnSettings
mobSpawnSettings
记录组件的字段。
-
-
构造器详细资料
-
BiomeInfo
public BiomeInfo(Biome.ClimateSettings climateSettings, BiomeSpecialEffects effects, BiomeGenerationSettings generationSettings, MobSpawnSettings mobSpawnSettings) 创建BiomeInfo
记录类的实例。- 参数:
climateSettings
-climateSettings
记录组件的值effects
-effects
记录组件的值generationSettings
-generationSettings
记录组件的值mobSpawnSettings
-mobSpawnSettings
记录组件的值
-
-
方法详细资料
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)
进行比较。 -
climateSettings
返回climateSettings
记录组件的值。- 返回:
climateSettings
记录组件的值
-
effects
返回effects
记录组件的值。- 返回:
effects
记录组件的值
-
generationSettings
返回generationSettings
记录组件的值。- 返回:
generationSettings
记录组件的值
-
mobSpawnSettings
返回mobSpawnSettings
记录组件的值。- 返回:
mobSpawnSettings
记录组件的值
-