Class EarthGeneratorSettings

java.lang.Object
net.buildtheearth.terracore.worldgen.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 net.buildtheearth.terracore.geo.projection.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

    • EarthGeneratorSettings

      public EarthGeneratorSettings(@NonNull @NonNull net.buildtheearth.terracore.geo.projection.GeographicProjection projection, String cwg, Boolean useDefaultHeights, Boolean useDefaultTreeCover, int version)
  • 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()
    • withProjection

      public EarthGeneratorSettings withProjection(@NonNull @NonNull net.buildtheearth.terracore.geo.projection.GeographicProjection projection)
      Returns:
      this.
    • withUseDefaultHeights

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

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

      @NonNull public @NonNull net.buildtheearth.terracore.geo.projection.GeographicProjection projection()
    • useDefaultHeights

      public boolean useDefaultHeights()
    • useDefaultTreeCover

      public boolean useDefaultTreeCover()