Class WorldGenSettings
java.lang.Object
net.minecraft.world.level.levelgen.WorldGenSettings
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WorldGenSettings>
private final boolean
private final boolean
private static final org.slf4j.Logger
private final long
-
Constructor Summary
ConstructorDescriptionWorldGenSettings
(long p_204633_, boolean p_204634_, boolean p_204635_, Registry<LevelStem> p_204636_) WorldGenSettings
(long p_204638_, boolean p_204639_, boolean p_204640_, Registry<LevelStem> p_204641_, Optional<String> p_204642_) -
Method Summary
Modifier and TypeMethodDescriptionstatic WorldGenSettings
create
(RegistryAccess p_209717_, DedicatedServerProperties.WorldGenProperties p_209718_) static WorldGenSettings
demoSettings
(RegistryAccess p_64646_) boolean
boolean
private com.mojang.serialization.DataResult<WorldGenSettings>
boolean
isDebug()
boolean
boolean
com.google.common.collect.ImmutableSet<ResourceKey<Level>>
levels()
static ResourceKey<Level>
levelStemToLevel
(ResourceKey<LevelStem> p_190049_) static ResourceKey<LevelStem>
levelToLevelStem
(ResourceKey<Level> p_190053_) static WorldGenSettings
makeDefault
(RegistryAccess p_190051_) static NoiseBasedChunkGenerator
makeDefaultOverworld
(RegistryAccess p_190028_, long p_190029_) static NoiseBasedChunkGenerator
makeDefaultOverworld
(RegistryAccess p_190040_, long p_190041_, boolean p_190042_) static NoiseBasedChunkGenerator
makeOverworld
(RegistryAccess p_190031_, long p_190032_, ResourceKey<NoiseGeneratorSettings> p_190033_) static NoiseBasedChunkGenerator
makeOverworld
(RegistryAccess p_190035_, long p_190036_, ResourceKey<NoiseGeneratorSettings> p_190037_, boolean p_190038_) static OptionalLong
long
seed()
private boolean
stable()
withOverworld
(Registry<DimensionType> p_204650_, Registry<LevelStem> p_204651_, ChunkGenerator p_204652_) withOverworld
(Registry<LevelStem> p_204646_, Holder<DimensionType> p_204647_, ChunkGenerator p_204648_) withSeed
(boolean p_64655_, OptionalLong p_64656_)
-
Field Details
-
CODEC
-
LOGGER
private static final org.slf4j.Logger LOGGER -
seed
private final long seed -
generateFeatures
private final boolean generateFeatures -
generateBonusChest
private final boolean generateBonusChest -
dimensions
-
legacyCustomOptions
-
-
Constructor Details
-
WorldGenSettings
-
WorldGenSettings
-
-
Method Details
-
guardExperimental
-
stable
private boolean stable() -
demoSettings
-
makeDefault
-
makeDefaultOverworld
public static NoiseBasedChunkGenerator makeDefaultOverworld(RegistryAccess p_190028_, long p_190029_) -
makeDefaultOverworld
public static NoiseBasedChunkGenerator makeDefaultOverworld(RegistryAccess p_190040_, long p_190041_, boolean p_190042_) -
makeOverworld
public static NoiseBasedChunkGenerator makeOverworld(RegistryAccess p_190031_, long p_190032_, ResourceKey<NoiseGeneratorSettings> p_190033_) -
makeOverworld
public static NoiseBasedChunkGenerator makeOverworld(RegistryAccess p_190035_, long p_190036_, ResourceKey<NoiseGeneratorSettings> p_190037_, boolean p_190038_) -
seed
public long seed() -
generateFeatures
public boolean generateFeatures() -
generateBonusChest
public boolean generateBonusChest() -
withOverworld
public static Registry<LevelStem> withOverworld(Registry<DimensionType> p_204650_, Registry<LevelStem> p_204651_, ChunkGenerator p_204652_) -
withOverworld
public static Registry<LevelStem> withOverworld(Registry<LevelStem> p_204646_, Holder<DimensionType> p_204647_, ChunkGenerator p_204648_) -
dimensions
-
overworld
-
levels
-
levelStemToLevel
-
levelToLevelStem
-
isDebug
public boolean isDebug() -
isFlatWorld
public boolean isFlatWorld() -
isOldCustomizedWorld
public boolean isOldCustomizedWorld() -
withBonusChest
-
withFeaturesToggled
-
withBonusChestToggled
-
create
public static WorldGenSettings create(RegistryAccess p_209717_, DedicatedServerProperties.WorldGenProperties p_209718_) -
withSeed
-
parseSeed
-