Class GeneratorOptions

java.lang.Object
net.minecraft.world.gen.GeneratorOptions

public class GeneratorOptions extends Object
Mappings:
Namespace Name
named net/minecraft/world/gen/GeneratorOptions
intermediary net/minecraft/class_5285
official een
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<GeneratorOptions> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/GeneratorOptions;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_24826 Lnet/minecraft/class_5285;field_24826:Lcom/mojang/serialization/MapCodec;
      official a Leen;a:Lcom/mojang/serialization/MapCodec;
    • DEMO_OPTIONS

      public static final GeneratorOptions DEMO_OPTIONS
      Mappings:
      Namespace Name Mixin selector
      named DEMO_OPTIONS Lnet/minecraft/world/gen/GeneratorOptions;DEMO_OPTIONS:Lnet/minecraft/world/gen/GeneratorOptions;
      intermediary field_40367 Lnet/minecraft/class_5285;field_40367:Lnet/minecraft/class_5285;
      official b Leen;b:Leen;
    • seed

      private final long seed
      Mappings:
      Namespace Name Mixin selector
      named seed Lnet/minecraft/world/gen/GeneratorOptions;seed:J
      intermediary field_24526 Lnet/minecraft/class_5285;field_24526:J
      official c Leen;c:J
    • generateStructures

      private final boolean generateStructures
      Mappings:
      Namespace Name Mixin selector
      named generateStructures Lnet/minecraft/world/gen/GeneratorOptions;generateStructures:Z
      intermediary field_24527 Lnet/minecraft/class_5285;field_24527:Z
      official d Leen;d:Z
    • bonusChest

      private final boolean bonusChest
      Mappings:
      Namespace Name Mixin selector
      named bonusChest Lnet/minecraft/world/gen/GeneratorOptions;bonusChest:Z
      intermediary field_24528 Lnet/minecraft/class_5285;field_24528:Z
      official e Leen;e:Z
    • legacyCustomOptions

      private final Optional<String> legacyCustomOptions
      Mappings:
      Namespace Name Mixin selector
      named legacyCustomOptions Lnet/minecraft/world/gen/GeneratorOptions;legacyCustomOptions:Ljava/util/Optional;
      intermediary field_24532 Lnet/minecraft/class_5285;field_24532:Ljava/util/Optional;
      official f Leen;f:Ljava/util/Optional;
  • Constructor Details

    • GeneratorOptions

      public GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/GeneratorOptions;<init>(JZZ)V
      intermediary <init> Lnet/minecraft/class_5285;<init>(JZZ)V
      official <init> Leen;<init>(JZZ)V
    • GeneratorOptions

      private GeneratorOptions(long seed, boolean generateStructures, boolean bonusChest, Optional<String> legacyCustomOptions)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/GeneratorOptions;<init>(JZZLjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_5285;<init>(JZZLjava/util/Optional;)V
      official <init> Leen;<init>(JZZLjava/util/Optional;)V
  • Method Details

    • createRandom

      public static GeneratorOptions createRandom()
      Mappings:
      Namespace Name Mixin selector
      named createRandom Lnet/minecraft/world/gen/GeneratorOptions;createRandom()Lnet/minecraft/world/gen/GeneratorOptions;
      intermediary method_45541 Lnet/minecraft/class_5285;method_45541()Lnet/minecraft/class_5285;
      official a Leen;a()Leen;
    • createTestWorld

      public static GeneratorOptions createTestWorld()
      Mappings:
      Namespace Name Mixin selector
      named createTestWorld Lnet/minecraft/world/gen/GeneratorOptions;createTestWorld()Lnet/minecraft/world/gen/GeneratorOptions;
      intermediary method_64223 Lnet/minecraft/class_5285;method_64223()Lnet/minecraft/class_5285;
      official b Leen;b()Leen;
    • getSeed

      public long getSeed()
      Mappings:
      Namespace Name Mixin selector
      named getSeed Lnet/minecraft/world/gen/GeneratorOptions;getSeed()J
      intermediary method_28028 Lnet/minecraft/class_5285;method_28028()J
      official c Leen;c()J
    • shouldGenerateStructures

      public boolean shouldGenerateStructures()
      Mappings:
      Namespace Name Mixin selector
      named shouldGenerateStructures Lnet/minecraft/world/gen/GeneratorOptions;shouldGenerateStructures()Z
      intermediary method_28029 Lnet/minecraft/class_5285;method_28029()Z
      official d Leen;d()Z
    • hasBonusChest

      public boolean hasBonusChest()
      Mappings:
      Namespace Name Mixin selector
      named hasBonusChest Lnet/minecraft/world/gen/GeneratorOptions;hasBonusChest()Z
      intermediary method_28030 Lnet/minecraft/class_5285;method_28030()Z
      official e Leen;e()Z
    • isLegacyCustomizedType

      public boolean isLegacyCustomizedType()
      Mappings:
      Namespace Name Mixin selector
      named isLegacyCustomizedType Lnet/minecraft/world/gen/GeneratorOptions;isLegacyCustomizedType()Z
      intermediary method_28035 Lnet/minecraft/class_5285;method_28035()Z
      official f Leen;f()Z
    • withBonusChest

      public GeneratorOptions withBonusChest(boolean bonusChest)
      Mappings:
      Namespace Name Mixin selector
      named withBonusChest Lnet/minecraft/world/gen/GeneratorOptions;withBonusChest(Z)Lnet/minecraft/world/gen/GeneratorOptions;
      intermediary method_28036 Lnet/minecraft/class_5285;method_28036(Z)Lnet/minecraft/class_5285;
      official a Leen;a(Z)Leen;
    • withStructures

      public GeneratorOptions withStructures(boolean structures)
      Mappings:
      Namespace Name Mixin selector
      named withStructures Lnet/minecraft/world/gen/GeneratorOptions;withStructures(Z)Lnet/minecraft/world/gen/GeneratorOptions;
      intermediary method_45542 Lnet/minecraft/class_5285;method_45542(Z)Lnet/minecraft/class_5285;
      official b Leen;b(Z)Leen;
    • withSeed

      public GeneratorOptions withSeed(OptionalLong seed)
      Mappings:
      Namespace Name Mixin selector
      named withSeed Lnet/minecraft/world/gen/GeneratorOptions;withSeed(Ljava/util/OptionalLong;)Lnet/minecraft/world/gen/GeneratorOptions;
      intermediary method_28024 Lnet/minecraft/class_5285;method_28024(Ljava/util/OptionalLong;)Lnet/minecraft/class_5285;
      official a Leen;a(Ljava/util/OptionalLong;)Leen;
    • parseSeed

      public static OptionalLong parseSeed(String seed)
      Mappings:
      Namespace Name Mixin selector
      named parseSeed Lnet/minecraft/world/gen/GeneratorOptions;parseSeed(Ljava/lang/String;)Ljava/util/OptionalLong;
      intermediary method_46720 Lnet/minecraft/class_5285;method_46720(Ljava/lang/String;)Ljava/util/OptionalLong;
      official a Leen;a(Ljava/lang/String;)Ljava/util/OptionalLong;
    • getRandomSeed

      public static long getRandomSeed()
      Mappings:
      Namespace Name Mixin selector
      named getRandomSeed Lnet/minecraft/world/gen/GeneratorOptions;getRandomSeed()J
      intermediary method_46721 Lnet/minecraft/class_5285;method_46721()J
      official g Leen;g()J