Interface WorldGenerationConfig.Mutable
-
- All Superinterfaces:
WorldGenerationConfig
- Enclosing interface:
- WorldGenerationConfig
public static interface WorldGenerationConfig.Mutable extends WorldGenerationConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
WorldGenerationConfig.Mutable.Builder
-
Nested classes/interfaces inherited from interface org.spongepowered.api.world.generation.config.WorldGenerationConfig
WorldGenerationConfig.Mutable
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static WorldGenerationConfig.Mutable.Builder
builder()
void
setGenerateBonusChest(boolean generateBonusChest)
Sets if the bonus chest will generate.void
setGenerateFeatures(boolean generateFeatures)
Sets whether features will generatevoid
setSeed(long seed)
Sets the seedvoid
setSeed(String seed)
Sets the seed-
Methods inherited from interface org.spongepowered.api.world.generation.config.WorldGenerationConfig
generateBonusChest, generateFeatures, seed
-
-
-
-
Method Detail
-
builder
static WorldGenerationConfig.Mutable.Builder builder()
-
setSeed
void setSeed(long seed)
Sets the seed- Parameters:
seed
- The seed
-
setSeed
void setSeed(String seed)
Sets the seedIf the seed is a number value, it will be parsed as a
long
. Otherwise, the String'sString.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
-
-