Class WorldOptions

java.lang.Object
net.minecraft.world.level.levelgen.WorldOptions

public class WorldOptions extends Object
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<WorldOptions> CODEC
    • DEMO_OPTIONS

      public static final WorldOptions DEMO_OPTIONS
    • seed

      private final long seed
    • generateStructures

      private final boolean generateStructures
    • generateBonusChest

      private final boolean generateBonusChest
    • legacyCustomOptions

      private final Optional<String> legacyCustomOptions
  • Constructor Details

    • WorldOptions

      public WorldOptions(long p_251567_, boolean p_250743_, boolean p_250454_)
    • WorldOptions

      private WorldOptions(long p_249191_, boolean p_250927_, boolean p_249013_, Optional<String> p_250735_)
  • Method Details

    • defaultWithRandomSeed

      public static WorldOptions defaultWithRandomSeed()
    • seed

      public long seed()
    • generateStructures

      public boolean generateStructures()
    • generateBonusChest

      public boolean generateBonusChest()
    • isOldCustomizedWorld

      public boolean isOldCustomizedWorld()
    • withBonusChest

      public WorldOptions withBonusChest(boolean p_251744_)
    • withStructures

      public WorldOptions withStructures(boolean p_251426_)
    • withSeed

      public WorldOptions withSeed(OptionalLong p_261572_)
    • parseSeed

      public static OptionalLong parseSeed(String p_262144_)
    • randomSeed

      public static long randomSeed()