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 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 TypeMethodDescriptionboolean
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 OptionalLong
static WorldGenSettings
replaceOverworldGenerator
(RegistryAccess p_224674_, WorldGenSettings p_224675_, ChunkGenerator p_224676_) 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
-
seed
private final long seed -
generateStructures
private final boolean generateStructures -
generateBonusChest
private final boolean generateBonusChest -
dimensions
-
legacyCustomOptions
-
-
Constructor Details
-
WorldGenSettings
-
WorldGenSettings
-
-
Method Details
-
guardExperimental
-
stable
private boolean stable() -
seed
public long seed() -
generateStructures
public boolean generateStructures() -
generateBonusChest
public boolean generateBonusChest() -
replaceOverworldGenerator
public static WorldGenSettings replaceOverworldGenerator(RegistryAccess p_224674_, WorldGenSettings p_224675_, ChunkGenerator p_224676_) -
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
-
withStructuresToggled
-
withBonusChestToggled
-
withSeed
-
parseSeed
-