Interface WorldGenerationConfig.Mutable
- All Superinterfaces:
WorldGenerationConfig
- Enclosing interface:
- WorldGenerationConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.world.generation.config.WorldGenerationConfig
WorldGenerationConfig.Mutable
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
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
Sets the seedMethods inherited from interface org.spongepowered.api.world.generation.config.WorldGenerationConfig
generateBonusChest, generateFeatures, seed
-
Method Details
-
builder
-
setSeed
void setSeed(long seed) Sets the seed- Parameters:
seed
- The seed
-
setSeed
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
-