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, SurfaceRules.RuleSource surfaceRule, List<Climate.ParameterPoint> spawnTarget, int seaLevel, boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ResourceKey<NoiseGeneratorSettings>private final booleanThe field for theaquifersEnabledrecord component.static final ResourceKey<NoiseGeneratorSettings>static final com.mojang.serialization.Codec<Holder<NoiseGeneratorSettings>>private final BlockStateThe field for thedefaultBlockrecord component.private final BlockStateThe field for thedefaultFluidrecord component.static final com.mojang.serialization.Codec<NoiseGeneratorSettings>private final booleanThe field for thedisableMobGenerationrecord component.static final ResourceKey<NoiseGeneratorSettings>static final ResourceKey<NoiseGeneratorSettings>static final ResourceKey<NoiseGeneratorSettings>static final ResourceKey<NoiseGeneratorSettings>private final NoiseRouterThe field for thenoiseRouterrecord component.private final NoiseSettingsThe field for thenoiseSettingsrecord component.private final booleanThe field for theoreVeinsEnabledrecord component.static final ResourceKey<NoiseGeneratorSettings>private final intThe field for theseaLevelrecord component.private final List<Climate.ParameterPoint>The field for thespawnTargetrecord component.private final SurfaceRules.RuleSourceThe field for thesurfaceRulerecord component.private final booleanThe field for theuseLegacyRandomSourcerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionNoiseGeneratorSettings(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) Creates an instance of aNoiseGeneratorSettingsrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns the value of theaquifersEnabledrecord component.static voidbootstrap(BootstapContext<NoiseGeneratorSettings> p_256365_) static NoiseGeneratorSettingscaves(BootstapContext<?> p_255690_) Returns the value of thedefaultBlockrecord component.Returns the value of thedefaultFluidrecord component.booleanReturns the value of thedisableMobGenerationrecord component.static NoiseGeneratorSettingsdummy()static NoiseGeneratorSettingsend(BootstapContext<?> p_256478_) final booleanIndicates whether some other object is "equal to" this one.static NoiseGeneratorSettingsfloatingIslands(BootstapContext<?> p_255885_) final inthashCode()Returns a hash code value for this object.booleanstatic NoiseGeneratorSettingsnether(BootstapContext<?> p_256180_) Returns the value of thenoiseRouterrecord component.Returns the value of thenoiseSettingsrecord component.booleanReturns the value of theoreVeinsEnabledrecord component.static NoiseGeneratorSettingsoverworld(BootstapContext<?> p_256460_, boolean p_256427_, boolean p_256318_) intseaLevel()Returns the value of theseaLevelrecord component.Returns the value of thespawnTargetrecord component.Returns the value of thesurfaceRulerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseLegacyRandomSourcerecord component.
- 
Field Details- 
noiseSettingsThe field for thenoiseSettingsrecord component.
- 
defaultBlockThe field for thedefaultBlockrecord component.
- 
defaultFluidThe field for thedefaultFluidrecord component.
- 
noiseRouterThe field for thenoiseRouterrecord component.
- 
surfaceRuleThe field for thesurfaceRulerecord component.
- 
spawnTargetThe field for thespawnTargetrecord component.
- 
seaLevelprivate final int seaLevelThe field for theseaLevelrecord component.
- 
disableMobGenerationprivate final boolean disableMobGenerationThe field for thedisableMobGenerationrecord component.
- 
aquifersEnabledprivate final boolean aquifersEnabledThe field for theaquifersEnabledrecord component.
- 
oreVeinsEnabledprivate final boolean oreVeinsEnabledThe field for theoreVeinsEnabledrecord component.
- 
useLegacyRandomSourceprivate final boolean useLegacyRandomSourceThe field for theuseLegacyRandomSourcerecord component.
- 
DIRECT_CODEC
- 
CODEC
- 
OVERWORLD
- 
LARGE_BIOMES
- 
AMPLIFIED
- 
NETHER
- 
END
- 
CAVES
- 
FLOATING_ISLANDS
 
- 
- 
Constructor Details- 
NoiseGeneratorSettingspublic 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) Creates an instance of aNoiseGeneratorSettingsrecord class.- Parameters:
- noiseSettings- the value for the- noiseSettingsrecord component
- defaultBlock- the value for the- defaultBlockrecord component
- defaultFluid- the value for the- defaultFluidrecord component
- noiseRouter- the value for the- noiseRouterrecord component
- surfaceRule- the value for the- surfaceRulerecord component
- spawnTarget- the value for the- spawnTargetrecord component
- seaLevel- the value for the- seaLevelrecord component
- disableMobGeneration- the value for the- disableMobGenerationrecord component
- aquifersEnabled- the value for the- aquifersEnabledrecord component
- oreVeinsEnabled- the value for the- oreVeinsEnabledrecord component
- useLegacyRandomSource- the value for the- useLegacyRandomSourcerecord component
 
 
- 
- 
Method Details- 
isAquifersEnabledpublic boolean isAquifersEnabled()
- 
oreVeinsEnabledpublic boolean oreVeinsEnabled()Returns the value of theoreVeinsEnabledrecord component.- Returns:
- the value of the oreVeinsEnabledrecord component
 
- 
getRandomSource
- 
bootstrap
- 
end
- 
nether
- 
overworldpublic static NoiseGeneratorSettings overworld(BootstapContext<?> p_256460_, boolean p_256427_, boolean p_256318_) 
- 
caves
- 
floatingIslands
- 
dummy
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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 '=='.
- 
noiseSettingsReturns the value of thenoiseSettingsrecord component.- Returns:
- the value of the noiseSettingsrecord component
 
- 
defaultBlockReturns the value of thedefaultBlockrecord component.- Returns:
- the value of the defaultBlockrecord component
 
- 
defaultFluidReturns the value of thedefaultFluidrecord component.- Returns:
- the value of the defaultFluidrecord component
 
- 
noiseRouterReturns the value of thenoiseRouterrecord component.- Returns:
- the value of the noiseRouterrecord component
 
- 
surfaceRuleReturns the value of thesurfaceRulerecord component.- Returns:
- the value of the surfaceRulerecord component
 
- 
spawnTargetReturns the value of thespawnTargetrecord component.- Returns:
- the value of the spawnTargetrecord component
 
- 
seaLevelpublic int seaLevel()Returns the value of theseaLevelrecord component.- Returns:
- the value of the seaLevelrecord component
 
- 
disableMobGenerationpublic boolean disableMobGeneration()Returns the value of thedisableMobGenerationrecord component.- Returns:
- the value of the disableMobGenerationrecord component
 
- 
aquifersEnabledpublic boolean aquifersEnabled()Returns the value of theaquifersEnabledrecord component.- Returns:
- the value of the aquifersEnabledrecord component
 
- 
useLegacyRandomSourcepublic boolean useLegacyRandomSource()Returns the value of theuseLegacyRandomSourcerecord component.- Returns:
- the value of the useLegacyRandomSourcerecord component
 
 
-