Package net.minecraft.world.gen.settings
Class DimensionGeneratorSettings
- java.lang.Object
-
- net.minecraft.world.gen.settings.DimensionGeneratorSettings
-
public class DimensionGeneratorSettings extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<DimensionGeneratorSettings>
CODEC
private SimpleRegistry<Dimension>
dimensions
private boolean
generateBonusChest
private boolean
generateFeatures
private java.util.Optional<java.lang.String>
legacyCustomOptions
private static org.apache.logging.log4j.Logger
LOGGER
private long
seed
-
Constructor Summary
Constructors Modifier Constructor Description DimensionGeneratorSettings(long p_i231914_1_, boolean p_i231914_3_, boolean p_i231914_4_, SimpleRegistry<Dimension> p_i231914_5_)
private
DimensionGeneratorSettings(long p_i231915_1_, boolean p_i231915_3_, boolean p_i231915_4_, SimpleRegistry<Dimension> p_i231915_5_, java.util.Optional<java.lang.String> p_i231915_6_)
-
Method Summary
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<DimensionGeneratorSettings> CODEC
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
seed
private final long seed
-
generateFeatures
private final boolean generateFeatures
-
generateBonusChest
private final boolean generateBonusChest
-
dimensions
private final SimpleRegistry<Dimension> dimensions
-
legacyCustomOptions
private final java.util.Optional<java.lang.String> legacyCustomOptions
-
-
Constructor Detail
-
DimensionGeneratorSettings
public DimensionGeneratorSettings(long p_i231914_1_, boolean p_i231914_3_, boolean p_i231914_4_, SimpleRegistry<Dimension> p_i231914_5_)
-
DimensionGeneratorSettings
private DimensionGeneratorSettings(long p_i231915_1_, boolean p_i231915_3_, boolean p_i231915_4_, SimpleRegistry<Dimension> p_i231915_5_, java.util.Optional<java.lang.String> p_i231915_6_)
-
-
Method Detail
-
guardExperimental
private com.mojang.serialization.DataResult<DimensionGeneratorSettings> guardExperimental()
-
stable
private boolean stable()
-
demoSettings
public static DimensionGeneratorSettings demoSettings(DynamicRegistries p_242752_0_)
-
makeDefault
public static DimensionGeneratorSettings makeDefault(Registry<DimensionType> p_242751_0_, Registry<Biome> p_242751_1_, Registry<DimensionSettings> p_242751_2_)
-
makeDefaultOverworld
public static NoiseChunkGenerator makeDefaultOverworld(Registry<Biome> p_242750_0_, Registry<DimensionSettings> p_242750_1_, long p_242750_2_)
-
seed
public long seed()
-
generateFeatures
public boolean generateFeatures()
-
generateBonusChest
public boolean generateBonusChest()
-
withOverworld
public static SimpleRegistry<Dimension> withOverworld(Registry<DimensionType> p_242749_0_, SimpleRegistry<Dimension> p_242749_1_, ChunkGenerator p_242749_2_)
-
withOverworld
public static SimpleRegistry<Dimension> withOverworld(SimpleRegistry<Dimension> p_241520_0_, java.util.function.Supplier<DimensionType> p_241520_1_, ChunkGenerator p_241520_2_)
-
dimensions
public SimpleRegistry<Dimension> dimensions()
-
overworld
public ChunkGenerator overworld()
-
levels
public com.google.common.collect.ImmutableSet<RegistryKey<World>> levels()
-
isDebug
public boolean isDebug()
-
isFlatWorld
public boolean isFlatWorld()
-
isOldCustomizedWorld
public boolean isOldCustomizedWorld()
-
withBonusChest
public DimensionGeneratorSettings withBonusChest()
-
withFeaturesToggled
public DimensionGeneratorSettings withFeaturesToggled()
-
withBonusChestToggled
public DimensionGeneratorSettings withBonusChestToggled()
-
create
public static DimensionGeneratorSettings create(DynamicRegistries p_242753_0_, java.util.Properties p_242753_1_)
-
withSeed
public DimensionGeneratorSettings withSeed(boolean p_236220_1_, java.util.OptionalLong p_236220_2_)
-
-