net.minecraft.world.level.levelgen

public class WorldGenSettings

dbm
net.minecraft.world.level.levelgen.WorldGenSettings
net.minecraft.class_5285
net.minecraft.world.gen.GeneratorOptions
net.minecraft.src.C_2201_
net.minecraft.world.level.levelgen.GeneratorSettings

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<WorldGenSettings>
a
CODEC
field_24826
CODEC
f_64600_
private final long
b
seed
field_24526
seed
f_64602_
private final boolean
c
generateStructures
field_24527
generateStructures
f_224672_
private final boolean
d
generateBonusChest
field_24528
bonusChest
f_64604_
private final Registry<LevelStem>
e
dimensions
field_24827
options
f_64605_
private final Optional<String>
f
legacyCustomOptions
field_24532
legacyCustomOptions
f_64606_

Constructor summary

ModifierConstructor
public (long seed, boolean generateStructures, boolean bonusChest, Registry<LevelStem> options)
private (long seed, boolean generateStructures, boolean bonusChest, Registry<LevelStem> options, Optional<String> legacyCustomOptions)

Method summary

Modifier and TypeMethod
private com.mojang.serialization.DataResult<WorldGenSettings>
m()
guardExperimental()
method_28610()
validate()
m_64674_()
private boolean
n()
stable()
method_28611()
isStable()
m_64675_()
public long
a()
seed()
method_28028()
getSeed()
m_64619_()
public boolean
b()
generateStructures()
method_28029()
shouldGenerateStructures()
m_224677_()
public boolean
c()
generateBonusChest()
method_28030()
hasBonusChest()
m_64660_()
public static WorldGenSettings
a(hn arg0, dbm arg1, cxk arg2)
replaceOverworldGenerator(RegistryAccess arg0, WorldGenSettings arg1, ChunkGenerator arg2)
method_41563(class_5455 arg0, class_5285 arg1, class_2794 arg2)
create(DynamicRegistryManager dynamicRegistryManager, GeneratorOptions generatorOptions, ChunkGenerator chunkGenerator)
m_224673_(C_4706_ p_224674_, C_2201_ p_224675_, C_2118_ p_224676_)
public static Registry<LevelStem>
a(hm<cyu> arg0, hm<cyv> arg1, cxk arg2)
withOverworld(Registry<DimensionType> arg0, Registry<LevelStem> arg1, ChunkGenerator arg2)
method_28608(class_2378<class_2874> arg0, class_2378<class_5363> arg1, class_2794 arg2)
getRegistryWithReplacedOverworldGenerator(Registry<DimensionType> dimensionTypeRegistry, Registry<DimensionOptions> options, ChunkGenerator overworldGenerator)
m_204649_(C_4705_<C_2175_> p_204650_, C_4705_<C_2176_> p_204651_, C_2118_ p_204652_)
public static Registry<LevelStem>
a(hm<cyv> arg0, hc<cyu> arg1, cxk arg2)
withOverworld(Registry<LevelStem> arg0, Holder<DimensionType> arg1, ChunkGenerator arg2)
method_29962(class_2378<class_5363> arg0, class_6880<class_2874> arg1, class_2794 arg2)
getRegistryWithReplacedOverworld(Registry<DimensionOptions> options, RegistryEntry<DimensionType> dimensionType, ChunkGenerator overworldGenerator)
m_204645_(C_4705_<C_2176_> p_204646_, C_203228_<C_2175_> p_204647_, C_2118_ p_204648_)
public Registry<LevelStem>
d()
dimensions()
method_28609()
getDimensions()
m_204655_()
public ChunkGenerator
e()
overworld()
method_28032()
getChunkGenerator()
m_64666_()
public com.google.common.collect.ImmutableSet<ResourceKey<Level>>
f()
levels()
method_29575()
getWorlds()
m_64667_()
public static ResourceKey<Level>
a(aba<cyv> arg0)
levelStemToLevel(ResourceKey<LevelStem> arg0)
method_39334(class_5321<class_5363> arg0)
toWorldKey(RegistryKey<DimensionOptions> dimensionOptionsKey)
m_190048_(C_5264_<C_2176_> p_190049_)
public static ResourceKey<LevelStem>
b(aba<cgx> arg0)
levelToLevelStem(ResourceKey<Level> arg0)
method_39335(class_5321<class_1937> arg0)
toDimensionOptionsKey(RegistryKey<World> worldKey)
m_190052_(C_5264_<C_1596_> p_190053_)
public boolean
g()
isDebug()
method_28033()
isDebugWorld()
m_64668_()
public boolean
h()
isFlatWorld()
method_28034()
isFlatWorld()
m_64669_()
public boolean
i()
isOldCustomizedWorld()
method_28035()
isLegacyCustomizedType()
m_64670_()
public WorldGenSettings
j()
withBonusChest()
method_28036()
withBonusChest()
m_64671_()
public WorldGenSettings
k()
withStructuresToggled()
method_28037()
toggleGenerateStructures()
m_224678_()
public WorldGenSettings
l()
withBonusChestToggled()
method_28038()
toggleBonusChest()
m_64673_()
public WorldGenSettings
a(boolean arg0, OptionalLong arg1)
withSeed(boolean arg0, OptionalLong arg1)
method_28024(boolean arg0, OptionalLong arg1)
withHardcore(boolean hardcore, OptionalLong seed)
m_64654_(boolean p_64656_, OptionalLong arg1)
public static OptionalLong
a(String arg0)
parseSeed(String arg0)
method_40024(String arg0)
parseSeed(String seed)
m_202192_(String p_202193_)