Class EarthGeneratorSettings
java.lang.Object
net.buildtheearth.terracore.worldgen.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 net.buildtheearth.terracore.geo.projection.GeographicProjectionprotected final booleanprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionEarthGeneratorSettings(@NonNull net.buildtheearth.terracore.geo.projection.GeographicProjection projection, String cwg, Boolean useDefaultHeights, Boolean useDefaultTreeCover, int version) -
Method Summary
Modifier and TypeMethodDescriptiondatasets()static EarthGeneratorSettingsParses the given generator settings.static EarthGeneratorSettingsparseUncached(String generatorSettings) Parses the given generator settings without caching.@NonNull net.buildtheearth.terracore.geo.projection.GeographicProjectiontoString()booleanbooleanwithProjection(@NonNull net.buildtheearth.terracore.geo.projection.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
@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
-
-
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
-
withProjection
public EarthGeneratorSettings withProjection(@NonNull @NonNull net.buildtheearth.terracore.geo.projection.GeographicProjection projection) - Returns:
this.
-
withUseDefaultHeights
- Returns:
this.
-
withUseDefaultTreeCover
- Returns:
this.
-
projection
@NonNull public @NonNull net.buildtheearth.terracore.geo.projection.GeographicProjection projection() -
useDefaultHeights
public boolean useDefaultHeights() -
useDefaultTreeCover
public boolean useDefaultTreeCover()
-