public class GeneratorOptions extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
bonusChest |
static com.mojang.serialization.Codec<GeneratorOptions> |
CODEC |
private boolean |
generateStructures |
private Optional<String> |
legacyCustomOptions |
private static Logger |
LOGGER |
private SimpleRegistry<DimensionOptions> |
options |
private long |
seed |
Modifier | Constructor and Description |
---|---|
|
GeneratorOptions(long seed,
boolean generateStructures,
boolean bonusChest,
SimpleRegistry<DimensionOptions> simpleRegistry) |
private |
GeneratorOptions(long seed,
boolean generateStructures,
boolean bonusChest,
SimpleRegistry<DimensionOptions> simpleRegistry,
Optional<String> legacyCustomOptions) |
public static final com.mojang.serialization.Codec<GeneratorOptions> CODEC
private static final Logger LOGGER
private final long seed
private final boolean generateStructures
private final boolean bonusChest
private final SimpleRegistry<DimensionOptions> options
public GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, SimpleRegistry<DimensionOptions> simpleRegistry)
private GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, SimpleRegistry<DimensionOptions> simpleRegistry, Optional<String> legacyCustomOptions)
private com.mojang.serialization.DataResult<GeneratorOptions> method_28610()
private boolean method_28611()
public static GeneratorOptions method_31112(DynamicRegistryManager dynamicRegistryManager)
public static GeneratorOptions getDefaultOptions(Registry<DimensionType> registry, Registry<Biome> registry2, Registry<ChunkGeneratorSettings> registry3)
public static NoiseChunkGenerator createOverworldGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)
public long getSeed()
public boolean shouldGenerateStructures()
public boolean hasBonusChest()
public static SimpleRegistry<DimensionOptions> method_28608(Registry<DimensionType> registry, SimpleRegistry<DimensionOptions> simpleRegistry, ChunkGenerator chunkGenerator)
public static SimpleRegistry<DimensionOptions> method_29962(SimpleRegistry<DimensionOptions> simpleRegistry, Supplier<DimensionType> supplier, ChunkGenerator chunkGenerator)
public SimpleRegistry<DimensionOptions> getDimensions()
public ChunkGenerator getChunkGenerator()
public ImmutableSet<RegistryKey<World>> getWorlds()
public boolean isDebugWorld()
public boolean isFlatWorld()
@Environment(value=CLIENT) public boolean isLegacyCustomizedType()
public GeneratorOptions withBonusChest()
@Environment(value=CLIENT) public GeneratorOptions toggleGenerateStructures()
@Environment(value=CLIENT) public GeneratorOptions toggleBonusChest()
public static GeneratorOptions fromProperties(DynamicRegistryManager dynamicRegistryManager, Properties properties)
@Environment(value=CLIENT) public GeneratorOptions withHardcore(boolean hardcore, OptionalLong seed)