Package net.minecraft.world.gen
Class GeneratorOptions
java.lang.Object
net.minecraft.world.gen.GeneratorOptions
- Mappings:
Namespace Name official dbm
intermediary net/minecraft/class_5285
named net/minecraft/world/gen/GeneratorOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
static final com.mojang.serialization.Codec<GeneratorOptions>
private final boolean
private final Registry<DimensionOptions>
private final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionGeneratorOptions
(long seed, boolean generateStructures, boolean bonusChest, Registry<DimensionOptions> options) private
GeneratorOptions
(long seed, boolean generateStructures, boolean bonusChest, Registry<DimensionOptions> options, Optional<String> legacyCustomOptions) -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorOptions
create
(DynamicRegistryManager dynamicRegistryManager, GeneratorOptions generatorOptions, ChunkGenerator chunkGenerator) static Registry<DimensionOptions>
getRegistryWithReplacedOverworld
(Registry<DimensionOptions> options, RegistryEntry<DimensionType> dimensionType, ChunkGenerator overworldGenerator) static Registry<DimensionOptions>
getRegistryWithReplacedOverworldGenerator
(Registry<DimensionType> dimensionTypeRegistry, Registry<DimensionOptions> options, ChunkGenerator overworldGenerator) long
getSeed()
boolean
boolean
boolean
boolean
private boolean
isStable()
static OptionalLong
boolean
static 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 a
Ldbm;a:Lcom/mojang/serialization/Codec;
intermediary field_24826
Lnet/minecraft/class_5285;field_24826:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/GeneratorOptions;CODEC:Lcom/mojang/serialization/Codec;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector official b
Ldbm;b:J
intermediary field_24526
Lnet/minecraft/class_5285;field_24526:J
named seed
Lnet/minecraft/world/gen/GeneratorOptions;seed:J
-
generateStructures
private final boolean generateStructures- Mappings:
Namespace Name Mixin selector official c
Ldbm;c:Z
intermediary field_24527
Lnet/minecraft/class_5285;field_24527:Z
named generateStructures
Lnet/minecraft/world/gen/GeneratorOptions;generateStructures:Z
-
bonusChest
private final boolean bonusChest- Mappings:
Namespace Name Mixin selector official d
Ldbm;d:Z
intermediary field_24528
Lnet/minecraft/class_5285;field_24528:Z
named bonusChest
Lnet/minecraft/world/gen/GeneratorOptions;bonusChest:Z
-
options
- Mappings:
Namespace Name Mixin selector official e
Ldbm;e:Lhm;
intermediary field_24827
Lnet/minecraft/class_5285;field_24827:Lnet/minecraft/class_2378;
named options
Lnet/minecraft/world/gen/GeneratorOptions;options:Lnet/minecraft/util/registry/Registry;
-
legacyCustomOptions
- Mappings:
Namespace Name Mixin selector official f
Ldbm;f:Ljava/util/Optional;
intermediary field_24532
Lnet/minecraft/class_5285;field_24532:Ljava/util/Optional;
named legacyCustomOptions
Lnet/minecraft/world/gen/GeneratorOptions;legacyCustomOptions:Ljava/util/Optional;
-
-
Constructor Details
-
GeneratorOptions
public GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, Registry<DimensionOptions> options) - Mappings:
Namespace Name Mixin selector official <init>
Ldbm;<init>(JZZLhm;)V
intermediary <init>
Lnet/minecraft/class_5285;<init>(JZZLnet/minecraft/class_2378;)V
named <init>
Lnet/minecraft/world/gen/GeneratorOptions;<init>(JZZLnet/minecraft/util/registry/Registry;)V
-
GeneratorOptions
private GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, Registry<DimensionOptions> options, Optional<String> legacyCustomOptions) - Mappings:
Namespace Name Mixin selector official <init>
Ldbm;<init>(JZZLhm;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_5285;<init>(JZZLnet/minecraft/class_2378;Ljava/util/Optional;)V
named <init>
Lnet/minecraft/world/gen/GeneratorOptions;<init>(JZZLnet/minecraft/util/registry/Registry;Ljava/util/Optional;)V
-
-
Method Details
-
validate
- Mappings:
Namespace Name Mixin selector official m
Ldbm;m()Lcom/mojang/serialization/DataResult;
intermediary method_28610
Lnet/minecraft/class_5285;method_28610()Lcom/mojang/serialization/DataResult;
named validate
Lnet/minecraft/world/gen/GeneratorOptions;validate()Lcom/mojang/serialization/DataResult;
-
isStable
private boolean isStable()- Mappings:
Namespace Name Mixin selector official n
Ldbm;n()Z
intermediary method_28611
Lnet/minecraft/class_5285;method_28611()Z
named isStable
Lnet/minecraft/world/gen/GeneratorOptions;isStable()Z
-
getSeed
public long getSeed()- Mappings:
Namespace Name Mixin selector official a
Ldbm;a()J
intermediary method_28028
Lnet/minecraft/class_5285;method_28028()J
named getSeed
Lnet/minecraft/world/gen/GeneratorOptions;getSeed()J
-
shouldGenerateStructures
public boolean shouldGenerateStructures()- Mappings:
Namespace Name Mixin selector official b
Ldbm;b()Z
intermediary method_28029
Lnet/minecraft/class_5285;method_28029()Z
named shouldGenerateStructures
Lnet/minecraft/world/gen/GeneratorOptions;shouldGenerateStructures()Z
-
hasBonusChest
public boolean hasBonusChest()- Mappings:
Namespace Name Mixin selector official c
Ldbm;c()Z
intermediary method_28030
Lnet/minecraft/class_5285;method_28030()Z
named hasBonusChest
Lnet/minecraft/world/gen/GeneratorOptions;hasBonusChest()Z
-
create
public static GeneratorOptions create(DynamicRegistryManager dynamicRegistryManager, GeneratorOptions generatorOptions, ChunkGenerator chunkGenerator) - Mappings:
Namespace Name Mixin selector official a
Ldbm;a(Lhn;Ldbm;Lcxk;)Ldbm;
intermediary method_41563
Lnet/minecraft/class_5285;method_41563(Lnet/minecraft/class_5455;Lnet/minecraft/class_5285;Lnet/minecraft/class_2794;)Lnet/minecraft/class_5285;
named create
Lnet/minecraft/world/gen/GeneratorOptions;create(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/world/gen/GeneratorOptions;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)Lnet/minecraft/world/gen/GeneratorOptions;
-
getRegistryWithReplacedOverworldGenerator
public static Registry<DimensionOptions> getRegistryWithReplacedOverworldGenerator(Registry<DimensionType> dimensionTypeRegistry, Registry<DimensionOptions> options, ChunkGenerator overworldGenerator) - Mappings:
Namespace Name Mixin selector official a
Ldbm;a(Lhm;Lhm;Lcxk;)Lhm;
intermediary method_28608
Lnet/minecraft/class_5285;method_28608(Lnet/minecraft/class_2378;Lnet/minecraft/class_2378;Lnet/minecraft/class_2794;)Lnet/minecraft/class_2378;
named getRegistryWithReplacedOverworldGenerator
Lnet/minecraft/world/gen/GeneratorOptions;getRegistryWithReplacedOverworldGenerator(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/Registry;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)Lnet/minecraft/util/registry/Registry;
-
getRegistryWithReplacedOverworld
public static Registry<DimensionOptions> getRegistryWithReplacedOverworld(Registry<DimensionOptions> options, RegistryEntry<DimensionType> dimensionType, ChunkGenerator overworldGenerator) - Mappings:
Namespace Name Mixin selector official a
Ldbm;a(Lhm;Lhc;Lcxk;)Lhm;
intermediary method_29962
Lnet/minecraft/class_5285;method_29962(Lnet/minecraft/class_2378;Lnet/minecraft/class_6880;Lnet/minecraft/class_2794;)Lnet/minecraft/class_2378;
named getRegistryWithReplacedOverworld
Lnet/minecraft/world/gen/GeneratorOptions;getRegistryWithReplacedOverworld(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/world/gen/chunk/ChunkGenerator;)Lnet/minecraft/util/registry/Registry;
-
getDimensions
- Mappings:
Namespace Name Mixin selector official d
Ldbm;d()Lhm;
intermediary method_28609
Lnet/minecraft/class_5285;method_28609()Lnet/minecraft/class_2378;
named getDimensions
Lnet/minecraft/world/gen/GeneratorOptions;getDimensions()Lnet/minecraft/util/registry/Registry;
-
getChunkGenerator
- Mappings:
Namespace Name Mixin selector official e
Ldbm;e()Lcxk;
intermediary method_28032
Lnet/minecraft/class_5285;method_28032()Lnet/minecraft/class_2794;
named getChunkGenerator
Lnet/minecraft/world/gen/GeneratorOptions;getChunkGenerator()Lnet/minecraft/world/gen/chunk/ChunkGenerator;
-
getWorlds
- Mappings:
Namespace Name Mixin selector official f
Ldbm;f()Lcom/google/common/collect/ImmutableSet;
intermediary method_29575
Lnet/minecraft/class_5285;method_29575()Lcom/google/common/collect/ImmutableSet;
named getWorlds
Lnet/minecraft/world/gen/GeneratorOptions;getWorlds()Lcom/google/common/collect/ImmutableSet;
-
toWorldKey
- Mappings:
Namespace Name Mixin selector official a
Ldbm;a(Laba;)Laba;
intermediary method_39334
Lnet/minecraft/class_5285;method_39334(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5321;
named toWorldKey
Lnet/minecraft/world/gen/GeneratorOptions;toWorldKey(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/util/registry/RegistryKey;
-
toDimensionOptionsKey
- Mappings:
Namespace Name Mixin selector official b
Ldbm;b(Laba;)Laba;
intermediary method_39335
Lnet/minecraft/class_5285;method_39335(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5321;
named toDimensionOptionsKey
Lnet/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 g
Ldbm;g()Z
intermediary method_28033
Lnet/minecraft/class_5285;method_28033()Z
named isDebugWorld
Lnet/minecraft/world/gen/GeneratorOptions;isDebugWorld()Z
-
isFlatWorld
public boolean isFlatWorld()- Mappings:
Namespace Name Mixin selector official h
Ldbm;h()Z
intermediary method_28034
Lnet/minecraft/class_5285;method_28034()Z
named isFlatWorld
Lnet/minecraft/world/gen/GeneratorOptions;isFlatWorld()Z
-
isLegacyCustomizedType
public boolean isLegacyCustomizedType()- Mappings:
Namespace Name Mixin selector official i
Ldbm;i()Z
intermediary method_28035
Lnet/minecraft/class_5285;method_28035()Z
named isLegacyCustomizedType
Lnet/minecraft/world/gen/GeneratorOptions;isLegacyCustomizedType()Z
-
withBonusChest
- Mappings:
Namespace Name Mixin selector official j
Ldbm;j()Ldbm;
intermediary method_28036
Lnet/minecraft/class_5285;method_28036()Lnet/minecraft/class_5285;
named withBonusChest
Lnet/minecraft/world/gen/GeneratorOptions;withBonusChest()Lnet/minecraft/world/gen/GeneratorOptions;
-
toggleGenerateStructures
- Mappings:
Namespace Name Mixin selector official k
Ldbm;k()Ldbm;
intermediary method_28037
Lnet/minecraft/class_5285;method_28037()Lnet/minecraft/class_5285;
named toggleGenerateStructures
Lnet/minecraft/world/gen/GeneratorOptions;toggleGenerateStructures()Lnet/minecraft/world/gen/GeneratorOptions;
-
toggleBonusChest
- Mappings:
Namespace Name Mixin selector official l
Ldbm;l()Ldbm;
intermediary method_28038
Lnet/minecraft/class_5285;method_28038()Lnet/minecraft/class_5285;
named toggleBonusChest
Lnet/minecraft/world/gen/GeneratorOptions;toggleBonusChest()Lnet/minecraft/world/gen/GeneratorOptions;
-
withHardcore
- Mappings:
Namespace Name Mixin selector official a
Ldbm;a(ZLjava/util/OptionalLong;)Ldbm;
intermediary method_28024
Lnet/minecraft/class_5285;method_28024(ZLjava/util/OptionalLong;)Lnet/minecraft/class_5285;
named withHardcore
Lnet/minecraft/world/gen/GeneratorOptions;withHardcore(ZLjava/util/OptionalLong;)Lnet/minecraft/world/gen/GeneratorOptions;
-
parseSeed
- Mappings:
Namespace Name Mixin selector official a
Ldbm;a(Ljava/lang/String;)Ljava/util/OptionalLong;
intermediary method_40024
Lnet/minecraft/class_5285;method_40024(Ljava/lang/String;)Ljava/util/OptionalLong;
named parseSeed
Lnet/minecraft/world/gen/GeneratorOptions;parseSeed(Ljava/lang/String;)Ljava/util/OptionalLong;
-