Record Class NoiseGeneratorSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.NoiseGeneratorSettings
public record NoiseGeneratorSettings(NoiseSettings noiseSettings, BlockState defaultBlock, BlockState defaultFluid, NoiseRouter noiseRouter, Holder<MaterialRule> materialRule, List<SpawnTargetPoint> spawnTarget, int seaLevel, boolean disableMobGeneration, Optional<Aquifer.Config> aquifers, boolean useLegacyRandomSource, NoiseGeneratorSettings.DebugFunctions debugFunctions)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceKey<NoiseGeneratorSettings> private final Optional<Aquifer.Config> The field for theaquifersrecord component.static final ResourceKey<NoiseGeneratorSettings> static final com.mojang.serialization.Codec<Holder<NoiseGeneratorSettings>> private final NoiseGeneratorSettings.DebugFunctionsThe field for thedebugFunctionsrecord component.private final BlockStateThe field for thedefaultBlockrecord component.private final BlockStateThe field for thedefaultFluidrecord component.static final com.mojang.serialization.Codec<NoiseGeneratorSettings> private final booleanDeprecated.static final ResourceKey<NoiseGeneratorSettings> static final ResourceKey<NoiseGeneratorSettings> static final ResourceKey<NoiseGeneratorSettings> private final Holder<MaterialRule> The field for thematerialRulerecord component.static final ResourceKey<NoiseGeneratorSettings> private final NoiseRouterThe field for thenoiseRouterrecord component.private final NoiseSettingsThe field for thenoiseSettingsrecord component.static final ResourceKey<NoiseGeneratorSettings> private final intThe field for theseaLevelrecord component.private final List<SpawnTargetPoint> The field for thespawnTargetrecord component.private final booleanThe field for theuseLegacyRandomSourcerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNoiseGeneratorSettings(NoiseSettings noiseSettings, BlockState defaultBlock, BlockState defaultFluid, NoiseRouter noiseRouter, Holder<MaterialRule> materialRule, List<SpawnTargetPoint> spawnTarget, int seaLevel, boolean disableMobGeneration, Optional<Aquifer.Config> aquifers, boolean useLegacyRandomSource, NoiseGeneratorSettings.DebugFunctions debugFunctions) Creates an instance of aNoiseGeneratorSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaquifers()Returns the value of theaquifersrecord component.static voidbootstrap(BootstrapContext<NoiseGeneratorSettings> context) static NoiseGeneratorSettingscaves(BootstrapContext<?> context) Returns the value of thedebugFunctionsrecord component.Returns the value of thedefaultBlockrecord component.Returns the value of thedefaultFluidrecord component.booleanDeprecated.static NoiseGeneratorSettingsend(BootstrapContext<?> context) final booleanIndicates whether some other object is "equal to" this one.static NoiseGeneratorSettingsfloatingIslands(BootstrapContext<?> context) final inthashCode()Returns a hash code value for this object.Returns the value of thematerialRulerecord component.static NoiseGeneratorSettingsnether(BootstrapContext<?> context) Returns the value of thenoiseRouterrecord component.Returns the value of thenoiseSettingsrecord component.static NoiseGeneratorSettingsoverworld(BootstrapContext<?> context, boolean isAmplified, boolean largeBiomes) intseaLevel()Returns the value of theseaLevelrecord component.Returns the value of thespawnTargetrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseLegacyRandomSourcerecord component.
-
Field Details
-
noiseSettings
The field for thenoiseSettingsrecord component. -
defaultBlock
The field for thedefaultBlockrecord component. -
defaultFluid
The field for thedefaultFluidrecord component. -
noiseRouter
The field for thenoiseRouterrecord component. -
materialRule
The field for thematerialRulerecord component. -
spawnTarget
The field for thespawnTargetrecord component. -
seaLevel
private final int seaLevelThe field for theseaLevelrecord component. -
disableMobGeneration
Deprecated.The field for thedisableMobGenerationrecord component. -
aquifers
The field for theaquifersrecord component. -
useLegacyRandomSource
private final boolean useLegacyRandomSourceThe field for theuseLegacyRandomSourcerecord component. -
debugFunctions
The field for thedebugFunctionsrecord component. -
DIRECT_CODEC
-
CODEC
-
OVERWORLD
-
LARGE_BIOMES
-
AMPLIFIED
-
NETHER
-
END
-
CAVES
-
FLOATING_ISLANDS
-
-
Constructor Details
-
NoiseGeneratorSettings
public NoiseGeneratorSettings(NoiseSettings noiseSettings, BlockState defaultBlock, BlockState defaultFluid, NoiseRouter noiseRouter, Holder<MaterialRule> materialRule, List<SpawnTargetPoint> spawnTarget, int seaLevel, @Deprecated boolean disableMobGeneration, Optional<Aquifer.Config> aquifers, boolean useLegacyRandomSource, NoiseGeneratorSettings.DebugFunctions debugFunctions) Creates an instance of aNoiseGeneratorSettingsrecord class.- Parameters:
noiseSettings- the value for thenoiseSettingsrecord componentdefaultBlock- the value for thedefaultBlockrecord componentdefaultFluid- the value for thedefaultFluidrecord componentnoiseRouter- the value for thenoiseRouterrecord componentmaterialRule- the value for thematerialRulerecord componentspawnTarget- the value for thespawnTargetrecord componentseaLevel- the value for theseaLevelrecord componentdisableMobGeneration- the value for thedisableMobGenerationrecord componentaquifers- the value for theaquifersrecord componentuseLegacyRandomSource- the value for theuseLegacyRandomSourcerecord componentdebugFunctions- the value for thedebugFunctionsrecord component
-
-
Method Details
-
getRandomSource
-
bootstrap
-
end
-
nether
-
overworld
public static NoiseGeneratorSettings overworld(BootstrapContext<?> context, boolean isAmplified, boolean largeBiomes) -
caves
-
floatingIslands
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
noiseSettings
Returns the value of thenoiseSettingsrecord component.- Returns:
- the value of the
noiseSettingsrecord component
-
defaultBlock
Returns the value of thedefaultBlockrecord component.- Returns:
- the value of the
defaultBlockrecord component
-
defaultFluid
Returns the value of thedefaultFluidrecord component.- Returns:
- the value of the
defaultFluidrecord component
-
noiseRouter
Returns the value of thenoiseRouterrecord component.- Returns:
- the value of the
noiseRouterrecord component
-
materialRule
Returns the value of thematerialRulerecord component.- Returns:
- the value of the
materialRulerecord component
-
spawnTarget
Returns the value of thespawnTargetrecord component.- Returns:
- the value of the
spawnTargetrecord component
-
seaLevel
public int seaLevel()Returns the value of theseaLevelrecord component.- Returns:
- the value of the
seaLevelrecord component
-
disableMobGeneration
Deprecated.Returns the value of thedisableMobGenerationrecord component.- Returns:
- the value of the
disableMobGenerationrecord component
-
aquifers
Returns the value of theaquifersrecord component.- Returns:
- the value of the
aquifersrecord component
-
useLegacyRandomSource
public boolean useLegacyRandomSource()Returns the value of theuseLegacyRandomSourcerecord component.- Returns:
- the value of the
useLegacyRandomSourcerecord component
-
debugFunctions
Returns the value of thedebugFunctionsrecord component.- Returns:
- the value of the
debugFunctionsrecord component
-