Package net.minecraft.world.gen
Class GeneratorOptions
java.lang.Object
net.minecraft.world.gen.GeneratorOptions
- Mappings:
Namespace Name official ctqintermediary net/minecraft/class_5285named net/minecraft/world/gen/GeneratorOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanstatic final com.mojang.serialization.Codec<GeneratorOptions>private final booleanprivate static final Loggerprivate final SimpleRegistry<DimensionOptions>private final 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(DynamicRegistryManager registryManager, long long2) static GeneratorOptionsfromProperties(DynamicRegistryManager registryManager, Properties properties) static GeneratorOptionsgetDefaultOptions(DynamicRegistryManager registryManager) 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()static NoiseChunkGeneratormethod_39556(DynamicRegistryManager dynamicRegistryManager, long long2, RegistryKey<ChunkGeneratorSettings> registryKey) static NoiseChunkGeneratormethod_39557(DynamicRegistryManager dynamicRegistryManager, long long2, RegistryKey<ChunkGeneratorSettings> registryKey, boolean bool) static NoiseChunkGeneratormethod_39558(DynamicRegistryManager dynamicRegistryManager, long long2, boolean bool) booleanstatic RegistryKey<DimensionOptions>toDimensionOptionsKey(RegistryKey<World> worldKey) static RegistryKey<World>toWorldKey(RegistryKey<DimensionOptions> dimensionOptionsKey) private com.mojang.serialization.DataResult<GeneratorOptions>validate()withHardcore(boolean hardcore, OptionalLong seed)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLctq;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 bLctq;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 cLctq;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 dLctq;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 eLctq;e:Zintermediary field_24528Lnet/minecraft/class_5285;field_24528:Znamed bonusChestLnet/minecraft/world/gen/GeneratorOptions;bonusChest:Z
-
options
- Mappings:
Namespace Name Mixin selector official fLctq;f:Lgs;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 gLctq;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>Lctq;<init>(JZZLgs;)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>Lctq;<init>(JZZLgs;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 mLctq;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 nLctq;n()Zintermediary method_28611Lnet/minecraft/class_5285;method_28611()Znamed isStableLnet/minecraft/world/gen/GeneratorOptions;isStable()Z
-
createDemo
- Mappings:
Namespace Name Mixin selector official aLctq;a(Lgy;)Lctq;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
- Mappings:
Namespace Name Mixin selector official bLctq;b(Lgy;)Lctq;intermediary method_28009Lnet/minecraft/class_5285;method_28009(Lnet/minecraft/class_5455;)Lnet/minecraft/class_5285;named getDefaultOptionsLnet/minecraft/world/gen/GeneratorOptions;getDefaultOptions(Lnet/minecraft/util/registry/DynamicRegistryManager;)Lnet/minecraft/world/gen/GeneratorOptions;
-
createOverworldGenerator
public static NoiseChunkGenerator createOverworldGenerator(DynamicRegistryManager registryManager, long long2) - Mappings:
Namespace Name Mixin selector official aLctq;a(Lgy;J)Lcsx;intermediary method_28604Lnet/minecraft/class_5285;method_28604(Lnet/minecraft/class_5455;J)Lnet/minecraft/class_3754;named createOverworldGeneratorLnet/minecraft/world/gen/GeneratorOptions;createOverworldGenerator(Lnet/minecraft/util/registry/DynamicRegistryManager;J)Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;
-
method_39558
public static NoiseChunkGenerator method_39558(DynamicRegistryManager dynamicRegistryManager, long long2, boolean bool) - Mappings:
Namespace Name Mixin selector official aLctq;a(Lgy;JZ)Lcsx;intermediary method_39558Lnet/minecraft/class_5285;method_39558(Lnet/minecraft/class_5455;JZ)Lnet/minecraft/class_3754;named method_39558Lnet/minecraft/world/gen/GeneratorOptions;method_39558(Lnet/minecraft/util/registry/DynamicRegistryManager;JZ)Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;
-
method_39556
public static NoiseChunkGenerator method_39556(DynamicRegistryManager dynamicRegistryManager, long long2, RegistryKey<ChunkGeneratorSettings> registryKey) - Mappings:
Namespace Name Mixin selector official aLctq;a(Lgy;JLya;)Lcsx;intermediary method_39556Lnet/minecraft/class_5285;method_39556(Lnet/minecraft/class_5455;JLnet/minecraft/class_5321;)Lnet/minecraft/class_3754;named method_39556Lnet/minecraft/world/gen/GeneratorOptions;method_39556(Lnet/minecraft/util/registry/DynamicRegistryManager;JLnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;
-
method_39557
public static NoiseChunkGenerator method_39557(DynamicRegistryManager dynamicRegistryManager, long long2, RegistryKey<ChunkGeneratorSettings> registryKey, boolean bool) - Mappings:
Namespace Name Mixin selector official aLctq;a(Lgy;JLya;Z)Lcsx;intermediary method_39557Lnet/minecraft/class_5285;method_39557(Lnet/minecraft/class_5455;JLnet/minecraft/class_5321;Z)Lnet/minecraft/class_3754;named method_39557Lnet/minecraft/world/gen/GeneratorOptions;method_39557(Lnet/minecraft/util/registry/DynamicRegistryManager;JLnet/minecraft/util/registry/RegistryKey;Z)Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;
-
getSeed
public long getSeed()- Mappings:
Namespace Name Mixin selector official aLctq;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 bLctq;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 cLctq;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 aLctq;a(Lgx;Lgs;Lcps;)Lgs;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 aLctq;a(Lgs;Ljava/util/function/Supplier;Lcps;)Lgs;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 dLctq;d()Lgs;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 eLctq;e()Lcps;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 fLctq;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;
-
toWorldKey
- Mappings:
Namespace Name Mixin selector official aLctq;a(Lya;)Lya;intermediary method_39334Lnet/minecraft/class_5285;method_39334(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5321;named toWorldKeyLnet/minecraft/world/gen/GeneratorOptions;toWorldKey(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/util/registry/RegistryKey;
-
toDimensionOptionsKey
- Mappings:
Namespace Name Mixin selector official bLctq;b(Lya;)Lya;intermediary method_39335Lnet/minecraft/class_5285;method_39335(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5321;named toDimensionOptionsKeyLnet/minecraft/world/gen/GeneratorOptions;toDimensionOptionsKey(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/util/registry/RegistryKey;
-
isDebugWorld
public boolean isDebugWorld()- Mappings:
Namespace Name Mixin selector official gLctq;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 hLctq;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 iLctq;i()Zintermediary method_28035Lnet/minecraft/class_5285;method_28035()Znamed isLegacyCustomizedTypeLnet/minecraft/world/gen/GeneratorOptions;isLegacyCustomizedType()Z
-
withBonusChest
- Mappings:
Namespace Name Mixin selector official jLctq;j()Lctq;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 kLctq;k()Lctq;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 lLctq;l()Lctq;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 aLctq;a(Lgy;Ljava/util/Properties;)Lctq;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 aLctq;a(ZLjava/util/OptionalLong;)Lctq;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;
-