Interface WorldGenerationConfig.Mutable

All Superinterfaces:
WorldGenerationConfig
Enclosing interface:
WorldGenerationConfig

public static interface WorldGenerationConfig.Mutable extends WorldGenerationConfig
  • Method Details

    • builder

    • setSeed

      void setSeed(long seed)
      Sets the seed
      Parameters:
      seed - The seed
    • setSeed

      void setSeed(String seed)
      Sets the seed

      If the seed is a number value, it will be parsed as a long. Otherwise, the String's String.hashCode() will be used.

      Parameters:
      seed - The seed
    • setGenerateFeatures

      void setGenerateFeatures(boolean generateFeatures)
      Sets whether features will generate
      Parameters:
      generateFeatures - Whether features will generate
    • setGenerateBonusChest

      void setGenerateBonusChest(boolean generateBonusChest)
      Sets if the bonus chest will generate.

      It is up to the implementation on how this setting is handled. For Vanilla Minecraft, this setting has no effect if first-time generation has already occurred.

      Parameters:
      generateBonusChest - Whether bonus chest will generate