Package net.minecraft.world.gen
Class GeneratorOptions
java.lang.Object
net.minecraft.world.gen.GeneratorOptions
- Mappings:
Namespace Name official cqkintermediary net/minecraft/class_5285named net/minecraft/world/gen/GeneratorOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanstatic com.mojang.serialization.Codec<GeneratorOptions>private booleanprivate static Loggerprivate SimpleRegistry<DimensionOptions>private long -
Constructor Summary
ConstructorsModifierConstructorDescriptionGeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, SimpleRegistry<DimensionOptions> options)privateGeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, SimpleRegistry<DimensionOptions> options, Optional<String> legacyCustomOptions) -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorOptionscreateDemo(DynamicRegistryManager registryManager)static NoiseChunkGeneratorcreateOverworldGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)static GeneratorOptionsfromProperties(DynamicRegistryManager registryManager, Properties properties)static GeneratorOptionsgetDefaultOptions(Registry<DimensionType> registry, Registry<Biome> registry2, Registry<ChunkGeneratorSettings> registry3)static SimpleRegistry<DimensionOptions>getRegistryWithReplacedOverworld(SimpleRegistry<DimensionOptions> optionsRegistry, Supplier<DimensionType> overworldDimensionType, ChunkGenerator overworldGenerator)static SimpleRegistry<DimensionOptions>getRegistryWithReplacedOverworldGenerator(Registry<DimensionType> dimensionTypeRegistry, SimpleRegistry<DimensionOptions> optionsRegistry, ChunkGenerator overworldGenerator)longgetSeed()booleanbooleanbooleanbooleanprivate booleanisStable()booleanprivate com.mojang.serialization.DataResult<GeneratorOptions>validate()withHardcore(boolean hardcore, OptionalLong seed)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLcqk;a:Lcom/mojang/serialization/Codec;intermediary field_24826Lnet/minecraft/class_5285;field_24826:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/GeneratorOptions;CODEC:Lcom/mojang/serialization/Codec;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLcqk;b:Lorg/apache/logging/log4j/Logger;intermediary field_24525Lnet/minecraft/class_5285;field_24525:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/world/gen/GeneratorOptions;LOGGER:Lorg/apache/logging/log4j/Logger;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector official cLcqk;c:Jintermediary field_24526Lnet/minecraft/class_5285;field_24526:Jnamed seedLnet/minecraft/world/gen/GeneratorOptions;seed:J
-
generateStructures
private final boolean generateStructures- Mappings:
Namespace Name Mixin selector official dLcqk;d:Zintermediary field_24527Lnet/minecraft/class_5285;field_24527:Znamed generateStructuresLnet/minecraft/world/gen/GeneratorOptions;generateStructures:Z
-
bonusChest
private final boolean bonusChest- Mappings:
Namespace Name Mixin selector official eLcqk;e:Zintermediary field_24528Lnet/minecraft/class_5285;field_24528:Znamed bonusChestLnet/minecraft/world/gen/GeneratorOptions;bonusChest:Z
-
options
- Mappings:
Namespace Name Mixin selector official fLcqk;f:Lgr;intermediary field_24827Lnet/minecraft/class_5285;field_24827:Lnet/minecraft/class_2370;named optionsLnet/minecraft/world/gen/GeneratorOptions;options:Lnet/minecraft/util/registry/SimpleRegistry;
-
legacyCustomOptions
- Mappings:
Namespace Name Mixin selector official gLcqk;g:Ljava/util/Optional;intermediary field_24532Lnet/minecraft/class_5285;field_24532:Ljava/util/Optional;named legacyCustomOptionsLnet/minecraft/world/gen/GeneratorOptions;legacyCustomOptions:Ljava/util/Optional;
-
-
Constructor Details
-
GeneratorOptions
public GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, SimpleRegistry<DimensionOptions> options)- Mappings:
Namespace Name Mixin selector official <init>Lcqk;<init>(JZZLgr;)Vintermediary <init>Lnet/minecraft/class_5285;<init>(JZZLnet/minecraft/class_2370;)Vnamed <init>Lnet/minecraft/world/gen/GeneratorOptions;<init>(JZZLnet/minecraft/util/registry/SimpleRegistry;)V
-
GeneratorOptions
private GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, SimpleRegistry<DimensionOptions> options, Optional<String> legacyCustomOptions)- Mappings:
Namespace Name Mixin selector official <init>Lcqk;<init>(JZZLgr;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_5285;<init>(JZZLnet/minecraft/class_2370;Ljava/util/Optional;)Vnamed <init>Lnet/minecraft/world/gen/GeneratorOptions;<init>(JZZLnet/minecraft/util/registry/SimpleRegistry;Ljava/util/Optional;)V
-
-
Method Details
-
validate
- Mappings:
Namespace Name Mixin selector official mLcqk;m()Lcom/mojang/serialization/DataResult;intermediary method_28610Lnet/minecraft/class_5285;method_28610()Lcom/mojang/serialization/DataResult;named validateLnet/minecraft/world/gen/GeneratorOptions;validate()Lcom/mojang/serialization/DataResult;
-
isStable
private boolean isStable()- Mappings:
Namespace Name Mixin selector official nLcqk;n()Zintermediary method_28611Lnet/minecraft/class_5285;method_28611()Znamed isStableLnet/minecraft/world/gen/GeneratorOptions;isStable()Z
-
createDemo
- Mappings:
Namespace Name Mixin selector official aLcqk;a(Lgx;)Lcqk;intermediary method_31112Lnet/minecraft/class_5285;method_31112(Lnet/minecraft/class_5455;)Lnet/minecraft/class_5285;named createDemoLnet/minecraft/world/gen/GeneratorOptions;createDemo(Lnet/minecraft/util/registry/DynamicRegistryManager;)Lnet/minecraft/world/gen/GeneratorOptions;
-
getDefaultOptions
public static GeneratorOptions getDefaultOptions(Registry<DimensionType> registry, Registry<Biome> registry2, Registry<ChunkGeneratorSettings> registry3)- Mappings:
Namespace Name Mixin selector official aLcqk;a(Lgw;Lgw;Lgw;)Lcqk;intermediary method_28009Lnet/minecraft/class_5285;method_28009(Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;)Lnet/minecraft/class_5285;named getDefaultOptionsLnet/minecraft/world/gen/GeneratorOptions;getDefaultOptions(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/Registry;)Lnet/minecraft/world/gen/GeneratorOptions;
-
createOverworldGenerator
public static NoiseChunkGenerator createOverworldGenerator(Registry<Biome> biomeRegistry, Registry<ChunkGeneratorSettings> chunkGeneratorSettingsRegistry, long seed)- Mappings:
Namespace Name Mixin selector official aLcqk;a(Lgw;Lgw;J)Lcpt;intermediary method_28604Lnet/minecraft/class_5285;method_28604(Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;J)Lnet/minecraft/class_3754;named createOverworldGeneratorLnet/minecraft/world/gen/GeneratorOptions;createOverworldGenerator(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/Registry;J)Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;
-
getSeed
public long getSeed()- Mappings:
Namespace Name Mixin selector official aLcqk;a()Jintermediary method_28028Lnet/minecraft/class_5285;method_28028()Jnamed getSeedLnet/minecraft/world/gen/GeneratorOptions;getSeed()J
-
shouldGenerateStructures
public boolean shouldGenerateStructures()- Mappings:
Namespace Name Mixin selector official bLcqk;b()Zintermediary method_28029Lnet/minecraft/class_5285;method_28029()Znamed shouldGenerateStructuresLnet/minecraft/world/gen/GeneratorOptions;shouldGenerateStructures()Z
-
hasBonusChest
public boolean hasBonusChest()- Mappings:
Namespace Name Mixin selector official cLcqk;c()Zintermediary method_28030Lnet/minecraft/class_5285;method_28030()Znamed hasBonusChestLnet/minecraft/world/gen/GeneratorOptions;hasBonusChest()Z
-
getRegistryWithReplacedOverworldGenerator
public static SimpleRegistry<DimensionOptions> getRegistryWithReplacedOverworldGenerator(Registry<DimensionType> dimensionTypeRegistry, SimpleRegistry<DimensionOptions> optionsRegistry, ChunkGenerator overworldGenerator)- Mappings:
Namespace Name Mixin selector official aLcqk;a(Lgw;Lgr;Lcmn;)Lgr;intermediary method_28608Lnet/minecraft/class_5285;method_28608(Lnet/minecraft/class_2378;Lnet/minecraft/class_2370;Lnet/minecraft/class_2794;)Lnet/minecraft/class_2370;named getRegistryWithReplacedOverworldGeneratorLnet/minecraft/world/gen/GeneratorOptions;getRegistryWithReplacedOverworldGenerator(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/SimpleRegistry;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)Lnet/minecraft/util/registry/SimpleRegistry;
-
getRegistryWithReplacedOverworld
public static SimpleRegistry<DimensionOptions> getRegistryWithReplacedOverworld(SimpleRegistry<DimensionOptions> optionsRegistry, Supplier<DimensionType> overworldDimensionType, ChunkGenerator overworldGenerator)- Mappings:
Namespace Name Mixin selector official aLcqk;a(Lgr;Ljava/util/function/Supplier;Lcmn;)Lgr;intermediary method_29962Lnet/minecraft/class_5285;method_29962(Lnet/minecraft/class_2370;Ljava/util/function/Supplier;Lnet/minecraft/class_2794;)Lnet/minecraft/class_2370;named getRegistryWithReplacedOverworldLnet/minecraft/world/gen/GeneratorOptions;getRegistryWithReplacedOverworld(Lnet/minecraft/util/registry/SimpleRegistry;Ljava/util/function/Supplier;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)Lnet/minecraft/util/registry/SimpleRegistry;
-
getDimensions
- Mappings:
Namespace Name Mixin selector official dLcqk;d()Lgr;intermediary method_28609Lnet/minecraft/class_5285;method_28609()Lnet/minecraft/class_2370;named getDimensionsLnet/minecraft/world/gen/GeneratorOptions;getDimensions()Lnet/minecraft/util/registry/SimpleRegistry;
-
getChunkGenerator
- Mappings:
Namespace Name Mixin selector official eLcqk;e()Lcmn;intermediary method_28032Lnet/minecraft/class_5285;method_28032()Lnet/minecraft/class_2794;named getChunkGeneratorLnet/minecraft/world/gen/GeneratorOptions;getChunkGenerator()Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
getWorlds
- Mappings:
Namespace Name Mixin selector official fLcqk;f()Lcom/google/common/collect/ImmutableSet;intermediary method_29575Lnet/minecraft/class_5285;method_29575()Lcom/google/common/collect/ImmutableSet;named getWorldsLnet/minecraft/world/gen/GeneratorOptions;getWorlds()Lcom/google/common/collect/ImmutableSet;
-
isDebugWorld
public boolean isDebugWorld()- Mappings:
Namespace Name Mixin selector official gLcqk;g()Zintermediary method_28033Lnet/minecraft/class_5285;method_28033()Znamed isDebugWorldLnet/minecraft/world/gen/GeneratorOptions;isDebugWorld()Z
-
isFlatWorld
public boolean isFlatWorld()- Mappings:
Namespace Name Mixin selector official hLcqk;h()Zintermediary method_28034Lnet/minecraft/class_5285;method_28034()Znamed isFlatWorldLnet/minecraft/world/gen/GeneratorOptions;isFlatWorld()Z
-
isLegacyCustomizedType
public boolean isLegacyCustomizedType()- Mappings:
Namespace Name Mixin selector official iLcqk;i()Zintermediary method_28035Lnet/minecraft/class_5285;method_28035()Znamed isLegacyCustomizedTypeLnet/minecraft/world/gen/GeneratorOptions;isLegacyCustomizedType()Z
-
withBonusChest
- Mappings:
Namespace Name Mixin selector official jLcqk;j()Lcqk;intermediary method_28036Lnet/minecraft/class_5285;method_28036()Lnet/minecraft/class_5285;named withBonusChestLnet/minecraft/world/gen/GeneratorOptions;withBonusChest()Lnet/minecraft/world/gen/GeneratorOptions;
-
toggleGenerateStructures
- Mappings:
Namespace Name Mixin selector official kLcqk;k()Lcqk;intermediary method_28037Lnet/minecraft/class_5285;method_28037()Lnet/minecraft/class_5285;named toggleGenerateStructuresLnet/minecraft/world/gen/GeneratorOptions;toggleGenerateStructures()Lnet/minecraft/world/gen/GeneratorOptions;
-
toggleBonusChest
- Mappings:
Namespace Name Mixin selector official lLcqk;l()Lcqk;intermediary method_28038Lnet/minecraft/class_5285;method_28038()Lnet/minecraft/class_5285;named toggleBonusChestLnet/minecraft/world/gen/GeneratorOptions;toggleBonusChest()Lnet/minecraft/world/gen/GeneratorOptions;
-
fromProperties
public static GeneratorOptions fromProperties(DynamicRegistryManager registryManager, Properties properties)- Mappings:
Namespace Name Mixin selector official aLcqk;a(Lgx;Ljava/util/Properties;)Lcqk;intermediary method_28021Lnet/minecraft/class_5285;method_28021(Lnet/minecraft/class_5455;Ljava/util/Properties;)Lnet/minecraft/class_5285;named fromPropertiesLnet/minecraft/world/gen/GeneratorOptions;fromProperties(Lnet/minecraft/util/registry/DynamicRegistryManager;Ljava/util/Properties;)Lnet/minecraft/world/gen/GeneratorOptions;
-
withHardcore
- Mappings:
Namespace Name Mixin selector official aLcqk;a(ZLjava/util/OptionalLong;)Lcqk;intermediary method_28024Lnet/minecraft/class_5285;method_28024(ZLjava/util/OptionalLong;)Lnet/minecraft/class_5285;named withHardcoreLnet/minecraft/world/gen/GeneratorOptions;withHardcore(ZLjava/util/OptionalLong;)Lnet/minecraft/world/gen/GeneratorOptions;
-