Class EarthGeneratorSettings

java.lang.Object
net.buildtheearth.terraminusminus.generator.EarthGeneratorSettings

public class EarthGeneratorSettings extends Object
  • Field Details

    • CONFIG_VERSION

      public static final int CONFIG_VERSION
      See Also:
    • DEFAULT_SETTINGS

      public static final String DEFAULT_SETTINGS
    • BTE_DEFAULT_SETTINGS

      public static final String BTE_DEFAULT_SETTINGS
    • projection

      @NonNull protected final @NonNull GeographicProjection projection
    • useDefaultHeights

      protected final boolean useDefaultHeights
    • useDefaultTreeCover

      protected final boolean useDefaultTreeCover
    • biomeProvider

      protected final transient net.daporkchop.lib.common.reference.cache.Cached<EarthBiomeProvider> biomeProvider
    • datasets

      protected final transient net.daporkchop.lib.common.reference.cache.Cached<GeneratorDatasets> datasets
  • Constructor Details

  • Method Details

    • parse

      public static EarthGeneratorSettings parse(String generatorSettings)
      Parses the given generator settings.
      Parameters:
      generatorSettings - the settings string to parse
      Returns:
      the parsed settings
    • parseUncached

      public static EarthGeneratorSettings parseUncached(String generatorSettings)
      Parses the given generator settings without caching.
      Parameters:
      generatorSettings - the settings string to parse
      Returns:
      the parsed settings
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • biomeProvider

      public EarthBiomeProvider biomeProvider()
    • datasets

      public GeneratorDatasets datasets()
    • getLegacyGeneratorString

      public String getLegacyGeneratorString()
      Tries to convert this generator settings to a String Terra121 could understand.
      Returns:
      a valid String representing this settings for Terra121, or null if not possible (e.g. using Terra++ features like offsets)
    • withProjection

      public EarthGeneratorSettings withProjection(@NonNull @NonNull GeographicProjection projection)
      Returns:
      this.
    • withUseDefaultHeights

      public EarthGeneratorSettings withUseDefaultHeights(boolean useDefaultHeights)
      Returns:
      this.
    • withUseDefaultTreeCover

      public EarthGeneratorSettings withUseDefaultTreeCover(boolean useDefaultTreeCover)
      Returns:
      this.
    • projection

      @NonNull public @NonNull GeographicProjection projection()
    • useDefaultHeights

      public boolean useDefaultHeights()
    • useDefaultTreeCover

      public boolean useDefaultTreeCover()