Class EarthGeneratorSettings
java.lang.Object
net.buildtheearth.terraminusminus.generator.EarthGeneratorSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.daporkchop.lib.common.reference.cache.Cached<EarthBiomeProvider> static final Stringstatic final intprotected final net.daporkchop.lib.common.reference.cache.Cached<GeneratorDatasets> static final Stringprotected final @NonNull GeographicProjectionprotected final booleanprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionEarthGeneratorSettings(@NonNull GeographicProjection projection, String cwg, Boolean useDefaultHeights, Boolean useDefaultTreeCover, int version) -
Method Summary
Modifier and TypeMethodDescriptiondatasets()Tries to convert this generator settings to a String Terra121 could understand.static EarthGeneratorSettingsParses the given generator settings.static EarthGeneratorSettingsparseUncached(String generatorSettings) Parses the given generator settings without caching.@NonNull GeographicProjectiontoString()booleanbooleanwithProjection(@NonNull GeographicProjection projection) withUseDefaultHeights(boolean useDefaultHeights) withUseDefaultTreeCover(boolean useDefaultTreeCover)
-
Field Details
-
CONFIG_VERSION
public static final int CONFIG_VERSION- See Also:
-
DEFAULT_SETTINGS
-
BTE_DEFAULT_SETTINGS
-
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 GeographicProjection projection, String cwg, Boolean useDefaultHeights, Boolean useDefaultTreeCover, int version)
-
-
Method Details
-
parse
Parses the given generator settings.- Parameters:
generatorSettings- the settings string to parse- Returns:
- the parsed settings
-
parseUncached
Parses the given generator settings without caching.- Parameters:
generatorSettings- the settings string to parse- Returns:
- the parsed settings
-
toString
-
biomeProvider
-
datasets
-
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
- Returns:
this.
-
withUseDefaultHeights
- Returns:
this.
-
withUseDefaultTreeCover
- Returns:
this.
-
projection
-
useDefaultHeights
public boolean useDefaultHeights() -
useDefaultTreeCover
public boolean useDefaultTreeCover()
-