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 dyt
  • 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 Ldyt;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 Ldyt;b:Ldyt;
    • 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 Ldyt;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 Ldyt;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 Ldyt;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 Ldyt;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> Ldyt;<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> Ldyt;<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 Ldyt;a()Ldyt;
    • 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 b Ldyt;b()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 c Ldyt;c()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 d Ldyt;d()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 e Ldyt;e()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 Ldyt;a(Z)Ldyt;
    • 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 Ldyt;b(Z)Ldyt;
    • 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 Ldyt;a(Ljava/util/OptionalLong;)Ldyt;
    • 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 Ldyt;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 f Ldyt;f()J