记录类 NoiseGeneratorSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseGeneratorSettings
public record NoiseGeneratorSettings(NoiseSettings noiseSettings, BlockState defaultBlock, BlockState defaultFluid, NoiseRouter noiseRouter, SurfaceRules.RuleSource surfaceRule, List<Climate.ParameterPoint> spawnTarget, int seaLevel, boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource)
extends Record
-
字段概要
字段修饰符和类型字段说明static final ResourceKey
<NoiseGeneratorSettings> private final boolean
aquifersEnabled
记录组件的字段。static final ResourceKey
<NoiseGeneratorSettings> static final com.mojang.serialization.Codec
<Holder<NoiseGeneratorSettings>> private final BlockState
defaultBlock
记录组件的字段。private final BlockState
defaultFluid
记录组件的字段。static final com.mojang.serialization.Codec
<NoiseGeneratorSettings> private final boolean
已过时。static final ResourceKey
<NoiseGeneratorSettings> static final ResourceKey
<NoiseGeneratorSettings> static final ResourceKey
<NoiseGeneratorSettings> static final ResourceKey
<NoiseGeneratorSettings> private final NoiseRouter
noiseRouter
记录组件的字段。private final NoiseSettings
noiseSettings
记录组件的字段。private final boolean
oreVeinsEnabled
记录组件的字段。static final ResourceKey
<NoiseGeneratorSettings> private final int
seaLevel
记录组件的字段。private final List
<Climate.ParameterPoint> spawnTarget
记录组件的字段。private final SurfaceRules.RuleSource
surfaceRule
记录组件的字段。private final boolean
useLegacyRandomSource
记录组件的字段。 -
构造器概要
构造器构造器说明NoiseGeneratorSettings
(NoiseSettings noiseSettings, BlockState defaultBlock, BlockState defaultFluid, NoiseRouter noiseRouter, SurfaceRules.RuleSource surfaceRule, List<Climate.ParameterPoint> spawnTarget, int seaLevel, boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource) 创建NoiseGeneratorSettings
记录类的实例。 -
方法概要
修饰符和类型方法说明boolean
返回aquifersEnabled
记录组件的值。static void
bootstrap
(BootstrapContext<NoiseGeneratorSettings> p_321686_) static NoiseGeneratorSettings
caves
(BootstrapContext<?> p_321694_) 返回defaultBlock
记录组件的值。返回defaultFluid
记录组件的值。boolean
已过时。static NoiseGeneratorSettings
dummy()
static NoiseGeneratorSettings
end
(BootstrapContext<?> p_321661_) final boolean
指示某个其他对象是否“等于”此对象。static NoiseGeneratorSettings
floatingIslands
(BootstrapContext<?> p_321614_) final int
hashCode()
返回此对象的哈希代码值。boolean
static NoiseGeneratorSettings
nether
(BootstrapContext<?> p_321619_) 返回noiseRouter
记录组件的值。返回noiseSettings
记录组件的值。boolean
返回oreVeinsEnabled
记录组件的值。static NoiseGeneratorSettings
overworld
(BootstrapContext<?> p_321795_, boolean p_256427_, boolean p_256318_) int
seaLevel()
返回seaLevel
记录组件的值。返回spawnTarget
记录组件的值。返回surfaceRule
记录组件的值。final String
toString()
返回此记录类的字符串表示形式。boolean
返回useLegacyRandomSource
记录组件的值。
-
字段详细资料
-
noiseSettings
noiseSettings
记录组件的字段。 -
defaultBlock
defaultBlock
记录组件的字段。 -
defaultFluid
defaultFluid
记录组件的字段。 -
noiseRouter
noiseRouter
记录组件的字段。 -
surfaceRule
surfaceRule
记录组件的字段。 -
spawnTarget
spawnTarget
记录组件的字段。 -
seaLevel
private final int seaLevelseaLevel
记录组件的字段。 -
disableMobGeneration
已过时。disableMobGeneration
记录组件的字段。 -
aquifersEnabled
private final boolean aquifersEnabledaquifersEnabled
记录组件的字段。 -
oreVeinsEnabled
private final boolean oreVeinsEnabledoreVeinsEnabled
记录组件的字段。 -
useLegacyRandomSource
private final boolean useLegacyRandomSourceuseLegacyRandomSource
记录组件的字段。 -
DIRECT_CODEC
-
CODEC
-
OVERWORLD
-
LARGE_BIOMES
-
AMPLIFIED
-
NETHER
-
END
-
CAVES
-
FLOATING_ISLANDS
-
-
构造器详细资料
-
NoiseGeneratorSettings
public NoiseGeneratorSettings(NoiseSettings noiseSettings, BlockState defaultBlock, BlockState defaultFluid, NoiseRouter noiseRouter, SurfaceRules.RuleSource surfaceRule, List<Climate.ParameterPoint> spawnTarget, int seaLevel, @Deprecated boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource) 创建NoiseGeneratorSettings
记录类的实例。- 参数:
noiseSettings
-noiseSettings
记录组件的值defaultBlock
-defaultBlock
记录组件的值defaultFluid
-defaultFluid
记录组件的值noiseRouter
-noiseRouter
记录组件的值surfaceRule
-surfaceRule
记录组件的值spawnTarget
-spawnTarget
记录组件的值seaLevel
-seaLevel
记录组件的值disableMobGeneration
-disableMobGeneration
记录组件的值aquifersEnabled
-aquifersEnabled
记录组件的值oreVeinsEnabled
-oreVeinsEnabled
记录组件的值useLegacyRandomSource
-useLegacyRandomSource
记录组件的值
-
-
方法详细资料
-
isAquifersEnabled
public boolean isAquifersEnabled() -
getRandomSource
-
bootstrap
-
end
-
nether
-
overworld
public static NoiseGeneratorSettings overworld(BootstrapContext<?> p_321795_, boolean p_256427_, boolean p_256318_) -
caves
-
floatingIslands
-
dummy
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)
对参考组件进行比较;使用 '==' 对基元组件进行比较 -
noiseSettings
返回noiseSettings
记录组件的值。- 返回:
noiseSettings
记录组件的值
-
defaultBlock
返回defaultBlock
记录组件的值。- 返回:
defaultBlock
记录组件的值
-
defaultFluid
返回defaultFluid
记录组件的值。- 返回:
defaultFluid
记录组件的值
-
noiseRouter
返回noiseRouter
记录组件的值。- 返回:
noiseRouter
记录组件的值
-
surfaceRule
返回surfaceRule
记录组件的值。- 返回:
surfaceRule
记录组件的值
-
spawnTarget
返回spawnTarget
记录组件的值。- 返回:
spawnTarget
记录组件的值
-
seaLevel
public int seaLevel()返回seaLevel
记录组件的值。- 返回:
seaLevel
记录组件的值
-
disableMobGeneration
已过时。返回disableMobGeneration
记录组件的值。- 返回:
disableMobGeneration
记录组件的值
-
aquifersEnabled
public boolean aquifersEnabled()返回aquifersEnabled
记录组件的值。- 返回:
aquifersEnabled
记录组件的值
-
oreVeinsEnabled
public boolean oreVeinsEnabled()返回oreVeinsEnabled
记录组件的值。- 返回:
oreVeinsEnabled
记录组件的值
-
useLegacyRandomSource
public boolean useLegacyRandomSource()返回useLegacyRandomSource
记录组件的值。- 返回:
useLegacyRandomSource
记录组件的值
-