类 ModifiableBiomeInfo
java.lang.Object
net.neoforged.neoforge.common.world.ModifiableBiomeInfo
Holds lazy-evaluable modified biome info.
Memoizers are not used because it's important to return null
without evaluating the biome info if it's accessed outside of a server context.
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final org.slf4j.Logger
private @Nullable ModifiableBiomeInfo.BiomeInfo
private final ModifiableBiomeInfo.BiomeInfo
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
applyBiomeModifiers
(Holder<Biome> biome, List<BiomeModifier> biomeModifiers, RegistryAccess registryAccess) Internal NeoForge method.get()
返回 The modified biome info if modified biome info has been generated, otherwise gets original biome info。@Nullable ModifiableBiomeInfo.BiomeInfo
返回 Modified biome info; null if it hasn't been set yet。返回 The original biome info that the associated biome was created with。
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
originalBiomeInfo
-
modifiedBiomeInfo
-
-
构造器详细资料
-
ModifiableBiomeInfo
- 参数:
originalBiomeInfo
- BiomeInfo representing the original state of a biome when the biome was constructed.
-
-
方法详细资料
-
get
返回 The modified biome info if modified biome info has been generated, otherwise gets original biome info。- 返回:
- The modified biome info if modified biome info has been generated, otherwise gets original biome info
-
getOriginalBiomeInfo
返回 The original biome info that the associated biome was created with。- 返回:
- The original biome info that the associated biome was created with
-
getModifiedBiomeInfo
返回 Modified biome info; null if it hasn't been set yet。- 返回:
- Modified biome info; null if it hasn't been set yet
-
applyBiomeModifiers
@Internal public boolean applyBiomeModifiers(Holder<Biome> biome, List<BiomeModifier> biomeModifiers, RegistryAccess registryAccess) Internal NeoForge method. Will do nothing if this modifier had already been applied. Creates and caches the modified biome info.- 参数:
biome
- named biome with original data.biomeModifiers
- biome modifiers to apply.- 返回:
- whether the biome's network-synced data was modified
-