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
Modifier and TypeFieldDescriptionstatic final ResourceKey<NoiseGeneratorSettings>
private final boolean
The field for theaquifersEnabled
record component.static final ResourceKey<NoiseGeneratorSettings>
static final com.mojang.serialization.Codec<Holder<NoiseGeneratorSettings>>
private final BlockState
The field for thedefaultBlock
record component.private final BlockState
The field for thedefaultFluid
record component.static final com.mojang.serialization.Codec<NoiseGeneratorSettings>
private final boolean
Deprecated.static final ResourceKey<NoiseGeneratorSettings>
static final ResourceKey<NoiseGeneratorSettings>
static final ResourceKey<NoiseGeneratorSettings>
static final ResourceKey<NoiseGeneratorSettings>
private final NoiseRouter
The field for thenoiseRouter
record component.private final NoiseSettings
The field for thenoiseSettings
record component.private final boolean
The field for theoreVeinsEnabled
record component.static final ResourceKey<NoiseGeneratorSettings>
private final int
The field for theseaLevel
record component.private final List<Climate.ParameterPoint>
The field for thespawnTarget
record component.private final SurfaceRules.RuleSource
The field for thesurfaceRule
record component.private final boolean
The field for theuseLegacyRandomSource
record component. -
Constructor Summary
ConstructorDescriptionNoiseGeneratorSettings
(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 aNoiseGeneratorSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theaquifersEnabled
record component.static void
bootstrap
(BootstapContext<NoiseGeneratorSettings> p_256365_) static NoiseGeneratorSettings
caves
(BootstapContext<?> p_255690_) Returns the value of thedefaultBlock
record component.Returns the value of thedefaultFluid
record component.boolean
Deprecated.static NoiseGeneratorSettings
dummy()
static NoiseGeneratorSettings
end
(BootstapContext<?> p_256478_) final boolean
Indicates whether some other object is "equal to" this one.static NoiseGeneratorSettings
floatingIslands
(BootstapContext<?> p_255885_) final int
hashCode()
Returns a hash code value for this object.boolean
static NoiseGeneratorSettings
nether
(BootstapContext<?> p_256180_) Returns the value of thenoiseRouter
record component.Returns the value of thenoiseSettings
record component.boolean
Returns the value of theoreVeinsEnabled
record component.static NoiseGeneratorSettings
overworld
(BootstapContext<?> p_256460_, boolean p_256427_, boolean p_256318_) int
seaLevel()
Returns the value of theseaLevel
record component.Returns the value of thespawnTarget
record component.Returns the value of thesurfaceRule
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theuseLegacyRandomSource
record component.
-
Field Details
-
noiseSettings
The field for thenoiseSettings
record component. -
defaultBlock
The field for thedefaultBlock
record component. -
defaultFluid
The field for thedefaultFluid
record component. -
noiseRouter
The field for thenoiseRouter
record component. -
surfaceRule
The field for thesurfaceRule
record component. -
spawnTarget
The field for thespawnTarget
record component. -
seaLevel
private final int seaLevelThe field for theseaLevel
record component. -
disableMobGeneration
Deprecated.The field for thedisableMobGeneration
record component. -
aquifersEnabled
private final boolean aquifersEnabledThe field for theaquifersEnabled
record component. -
oreVeinsEnabled
private final boolean oreVeinsEnabledThe field for theoreVeinsEnabled
record component. -
useLegacyRandomSource
private final boolean useLegacyRandomSourceThe field for theuseLegacyRandomSource
record 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 aNoiseGeneratorSettings
record class.- Parameters:
noiseSettings
- the value for thenoiseSettings
record componentdefaultBlock
- the value for thedefaultBlock
record componentdefaultFluid
- the value for thedefaultFluid
record componentnoiseRouter
- the value for thenoiseRouter
record componentsurfaceRule
- the value for thesurfaceRule
record componentspawnTarget
- the value for thespawnTarget
record componentseaLevel
- the value for theseaLevel
record componentdisableMobGeneration
- the value for thedisableMobGeneration
record componentaquifersEnabled
- the value for theaquifersEnabled
record componentoreVeinsEnabled
- the value for theoreVeinsEnabled
record componentuseLegacyRandomSource
- the value for theuseLegacyRandomSource
record component
-
-
Method Details
-
isAquifersEnabled
public boolean isAquifersEnabled() -
getRandomSource
-
bootstrap
-
end
-
nether
-
overworld
public static NoiseGeneratorSettings overworld(BootstapContext<?> p_256460_, 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 thenoiseSettings
record component.- Returns:
- the value of the
noiseSettings
record component
-
defaultBlock
Returns the value of thedefaultBlock
record component.- Returns:
- the value of the
defaultBlock
record component
-
defaultFluid
Returns the value of thedefaultFluid
record component.- Returns:
- the value of the
defaultFluid
record component
-
noiseRouter
Returns the value of thenoiseRouter
record component.- Returns:
- the value of the
noiseRouter
record component
-
surfaceRule
Returns the value of thesurfaceRule
record component.- Returns:
- the value of the
surfaceRule
record component
-
spawnTarget
Returns the value of thespawnTarget
record component.- Returns:
- the value of the
spawnTarget
record component
-
seaLevel
public int seaLevel()Returns the value of theseaLevel
record component.- Returns:
- the value of the
seaLevel
record component
-
disableMobGeneration
Deprecated.Returns the value of thedisableMobGeneration
record component.- Returns:
- the value of the
disableMobGeneration
record component
-
aquifersEnabled
public boolean aquifersEnabled()Returns the value of theaquifersEnabled
record component.- Returns:
- the value of the
aquifersEnabled
record component
-
oreVeinsEnabled
public boolean oreVeinsEnabled()Returns the value of theoreVeinsEnabled
record component.- Returns:
- the value of the
oreVeinsEnabled
record component
-
useLegacyRandomSource
public boolean useLegacyRandomSource()Returns the value of theuseLegacyRandomSource
record component.- Returns:
- the value of the
useLegacyRandomSource
record component
-