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 Summary
FieldsModifier 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 booleanDeprecated.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 Summary
ConstructorsConstructorDescriptionNoiseGeneratorSettings(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 Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaquifersEnabledrecord component.static voidbootstrap(BootstrapContext<NoiseGeneratorSettings> p_321686_) static NoiseGeneratorSettingscaves(BootstrapContext<?> p_321694_) Returns the value of thedefaultBlockrecord component.Returns the value of thedefaultFluidrecord component.booleanDeprecated.static NoiseGeneratorSettingsdummy()static NoiseGeneratorSettingsend(BootstrapContext<?> p_321661_) final booleanIndicates whether some other object is "equal to" this one.static NoiseGeneratorSettingsfloatingIslands(BootstrapContext<?> p_321614_) final inthashCode()Returns a hash code value for this object.booleanstatic NoiseGeneratorSettingsnether(BootstrapContext<?> p_321619_) Returns the value of thenoiseRouterrecord component.Returns the value of thenoiseSettingsrecord component.booleanReturns the value of theoreVeinsEnabledrecord component.static NoiseGeneratorSettingsoverworld(BootstrapContext<?> p_321795_, 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
-
noiseSettings
The field for thenoiseSettingsrecord component. -
defaultBlock
The field for thedefaultBlockrecord component. -
defaultFluid
The field for thedefaultFluidrecord component. -
noiseRouter
The field for thenoiseRouterrecord component. -
surfaceRule
The field for thesurfaceRulerecord component. -
spawnTarget
The field for thespawnTargetrecord component. -
seaLevel
private final int seaLevelThe field for theseaLevelrecord component. -
disableMobGeneration
Deprecated.The field for thedisableMobGenerationrecord component. -
aquifersEnabled
private final boolean aquifersEnabledThe field for theaquifersEnabledrecord component. -
oreVeinsEnabled
private final boolean oreVeinsEnabledThe field for theoreVeinsEnabledrecord component. -
useLegacyRandomSource
private final boolean useLegacyRandomSourceThe field for theuseLegacyRandomSourcerecord 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, SurfaceRules.RuleSource surfaceRule, List<Climate.ParameterPoint> spawnTarget, int seaLevel, @Deprecated boolean disableMobGeneration, boolean aquifersEnabled, boolean oreVeinsEnabled, boolean useLegacyRandomSource) 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 componentsurfaceRule- the value for thesurfaceRulerecord componentspawnTarget- the value for thespawnTargetrecord componentseaLevel- the value for theseaLevelrecord componentdisableMobGeneration- the value for thedisableMobGenerationrecord componentaquifersEnabled- the value for theaquifersEnabledrecord componentoreVeinsEnabled- the value for theoreVeinsEnabledrecord componentuseLegacyRandomSource- the value for theuseLegacyRandomSourcerecord component
-
-
Method Details
-
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
Returns 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. -
hashCode
public 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. -
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 '=='. -
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
-
surfaceRule
Returns the value of thesurfaceRulerecord component.- Returns:
- the value of the
surfaceRulerecord 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
-
aquifersEnabled
public boolean aquifersEnabled()Returns the value of theaquifersEnabledrecord component.- Returns:
- the value of the
aquifersEnabledrecord component
-
oreVeinsEnabled
public boolean oreVeinsEnabled()Returns the value of theoreVeinsEnabledrecord component.- Returns:
- the value of the
oreVeinsEnabledrecord component
-
useLegacyRandomSource
public boolean useLegacyRandomSource()Returns the value of theuseLegacyRandomSourcerecord component.- Returns:
- the value of the
useLegacyRandomSourcerecord component
-