Package net.minecraft.world.gen
Class GeneratorOptions
java.lang.Object
net.minecraft.world.gen.GeneratorOptions
- Mappings:
Namespace Name official dpo
intermediary net/minecraft/class_5285
named net/minecraft/world/gen/GeneratorOptions
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
static final com.mojang.serialization.MapCodec<GeneratorOptions>
static final GeneratorOptions
private final boolean
private final long
-
Constructor Summary
ModifierConstructorDescriptionGeneratorOptions
(long seed, boolean generateStructures, boolean bonusChest) private
GeneratorOptions
(long seed, boolean generateStructures, boolean bonusChest, Optional<String> legacyCustomOptions) -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorOptions
static long
long
getSeed()
boolean
boolean
static OptionalLong
boolean
withBonusChest
(boolean bonusChest) withSeed
(OptionalLong seed) withStructures
(boolean structures)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldpo;a:Lcom/mojang/serialization/MapCodec;
intermediary field_24826
Lnet/minecraft/class_5285;field_24826:Lcom/mojang/serialization/MapCodec;
named CODEC
Lnet/minecraft/world/gen/GeneratorOptions;CODEC:Lcom/mojang/serialization/MapCodec;
-
DEMO_OPTIONS
- Mappings:
Namespace Name Mixin selector official b
Ldpo;b:Ldpo;
intermediary field_40367
Lnet/minecraft/class_5285;field_40367:Lnet/minecraft/class_5285;
named DEMO_OPTIONS
Lnet/minecraft/world/gen/GeneratorOptions;DEMO_OPTIONS:Lnet/minecraft/world/gen/GeneratorOptions;
-
seed
private final long seed- Mappings:
Namespace Name Mixin selector official c
Ldpo;c: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 d
Ldpo;d: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 e
Ldpo;e:Z
intermediary field_24528
Lnet/minecraft/class_5285;field_24528:Z
named bonusChest
Lnet/minecraft/world/gen/GeneratorOptions;bonusChest:Z
-
legacyCustomOptions
- Mappings:
Namespace Name Mixin selector official f
Ldpo;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) - Mappings:
Namespace Name Mixin selector official <init>
Ldpo;<init>(JZZ)V
intermediary <init>
Lnet/minecraft/class_5285;<init>(JZZ)V
named <init>
Lnet/minecraft/world/gen/GeneratorOptions;<init>(JZZ)V
-
GeneratorOptions
private GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, Optional<String> legacyCustomOptions) - Mappings:
Namespace Name Mixin selector official <init>
Ldpo;<init>(JZZLjava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_5285;<init>(JZZLjava/util/Optional;)V
named <init>
Lnet/minecraft/world/gen/GeneratorOptions;<init>(JZZLjava/util/Optional;)V
-
-
Method Details
-
createRandom
- Mappings:
Namespace Name Mixin selector official a
Ldpo;a()Ldpo;
intermediary method_45541
Lnet/minecraft/class_5285;method_45541()Lnet/minecraft/class_5285;
named createRandom
Lnet/minecraft/world/gen/GeneratorOptions;createRandom()Lnet/minecraft/world/gen/GeneratorOptions;
-
getSeed
public long getSeed()- Mappings:
Namespace Name Mixin selector official b
Ldpo;b()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 c
Ldpo;c()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 d
Ldpo;d()Z
intermediary method_28030
Lnet/minecraft/class_5285;method_28030()Z
named hasBonusChest
Lnet/minecraft/world/gen/GeneratorOptions;hasBonusChest()Z
-
isLegacyCustomizedType
public boolean isLegacyCustomizedType()- Mappings:
Namespace Name Mixin selector official e
Ldpo;e()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 a
Ldpo;a(Z)Ldpo;
intermediary method_28036
Lnet/minecraft/class_5285;method_28036(Z)Lnet/minecraft/class_5285;
named withBonusChest
Lnet/minecraft/world/gen/GeneratorOptions;withBonusChest(Z)Lnet/minecraft/world/gen/GeneratorOptions;
-
withStructures
- Mappings:
Namespace Name Mixin selector official b
Ldpo;b(Z)Ldpo;
intermediary method_45542
Lnet/minecraft/class_5285;method_45542(Z)Lnet/minecraft/class_5285;
named withStructures
Lnet/minecraft/world/gen/GeneratorOptions;withStructures(Z)Lnet/minecraft/world/gen/GeneratorOptions;
-
withSeed
- Mappings:
Namespace Name Mixin selector official a
Ldpo;a(Ljava/util/OptionalLong;)Ldpo;
intermediary method_28024
Lnet/minecraft/class_5285;method_28024(Ljava/util/OptionalLong;)Lnet/minecraft/class_5285;
named withSeed
Lnet/minecraft/world/gen/GeneratorOptions;withSeed(Ljava/util/OptionalLong;)Lnet/minecraft/world/gen/GeneratorOptions;
-
parseSeed
- Mappings:
Namespace Name Mixin selector official a
Ldpo;a(Ljava/lang/String;)Ljava/util/OptionalLong;
intermediary method_46720
Lnet/minecraft/class_5285;method_46720(Ljava/lang/String;)Ljava/util/OptionalLong;
named parseSeed
Lnet/minecraft/world/gen/GeneratorOptions;parseSeed(Ljava/lang/String;)Ljava/util/OptionalLong;
-
getRandomSeed
public static long getRandomSeed()- Mappings:
Namespace Name Mixin selector official f
Ldpo;f()J
intermediary method_46721
Lnet/minecraft/class_5285;method_46721()J
named getRandomSeed
Lnet/minecraft/world/gen/GeneratorOptions;getRandomSeed()J
-