Class GeneratorOptions

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

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

    • CODEC

      public static final com.mojang.serialization.MapCodec<GeneratorOptions> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldez;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

      public static final GeneratorOptions DEMO_OPTIONS
      Mappings:
      Namespace Name Mixin selector
      official b Ldez;b:Ldez;
      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 Ldez;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 Ldez;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 Ldez;e:Z
      intermediary field_24528 Lnet/minecraft/class_5285;field_24528:Z
      named bonusChest Lnet/minecraft/world/gen/GeneratorOptions;bonusChest:Z
    • legacyCustomOptions

      private final Optional<String> legacyCustomOptions
      Mappings:
      Namespace Name Mixin selector
      official f Ldez;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> Ldez;<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> Ldez;<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

      public static GeneratorOptions createRandom()
      Mappings:
      Namespace Name Mixin selector
      official a Ldez;a()Ldez;
      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 Ldez;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 Ldez;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 Ldez;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 Ldez;e()Z
      intermediary method_28035 Lnet/minecraft/class_5285;method_28035()Z
      named isLegacyCustomizedType Lnet/minecraft/world/gen/GeneratorOptions;isLegacyCustomizedType()Z
    • withBonusChest

      public GeneratorOptions withBonusChest(boolean bonusChest)
      Mappings:
      Namespace Name Mixin selector
      official a Ldez;a(Z)Ldez;
      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

      public GeneratorOptions withStructures(boolean structures)
      Mappings:
      Namespace Name Mixin selector
      official b Ldez;b(Z)Ldez;
      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

      public GeneratorOptions withSeed(OptionalLong seed)
      Mappings:
      Namespace Name Mixin selector
      official a Ldez;a(Ljava/util/OptionalLong;)Ldez;
      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

      public static OptionalLong parseSeed(String seed)
      Mappings:
      Namespace Name Mixin selector
      official a Ldez;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 Ldez;f()J
      intermediary method_46721 Lnet/minecraft/class_5285;method_46721()J
      named getRandomSeed Lnet/minecraft/world/gen/GeneratorOptions;getRandomSeed()J