@CatalogedBy(value=WorldArchetypes.class) public interface WorldArchetype extends CatalogType
World
for creation.Modifier and Type | Interface and Description |
---|---|
static interface |
WorldArchetype.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
areCommandsAllowed()
Gets whether commands are allowed.
|
static WorldArchetype.Builder |
builder()
Gets a new Builder instance for
WorldArchetype . |
boolean |
doesGenerateBonusChest()
Gets whether the bonus chest should be generated.
|
boolean |
doesGenerateSpawnOnLoad()
Gets whether spawn chunks will generate on load.
|
boolean |
doesKeepSpawnLoaded()
Gets whether spawn chunks remain loaded when no players are present.
|
Difficulty |
getDifficulty()
Gets the difficulty.
|
DimensionType |
getDimensionType()
Gets the dimension type.
|
GameMode |
getGameMode()
Gets the gamemode.
|
Collection<WorldGeneratorModifier> |
getGeneratorModifiers()
Gets an immutable collection of the world generator modifiers.
|
DataContainer |
getGeneratorSettings()
Gets a
DataContainer of any extra settings required by the
generator. |
GeneratorType |
getGeneratorType()
Gets the generator type.
|
PortalAgentType |
getPortalAgentType()
Gets the
PortalAgentType for the world. |
long |
getSeed()
Gets the seed.
|
SerializationBehavior |
getSerializationBehavior()
Gets the
SerializationBehavior that worlds built from this will use. |
boolean |
isEnabled()
Gets enabled status.
|
boolean |
isHardcore()
Gets whether hardcore mode is enabled.
|
boolean |
isPVPEnabled()
Gets whether PVP combat is enabled.
|
boolean |
isSeedRandomized()
Gets if the seed will be randomized for each world generated.
|
boolean |
loadOnStartup()
Gets whether to load when the server starts.
|
boolean |
usesMapFeatures()
Gets whether map features are enabled.
|
getId, getName
static WorldArchetype.Builder builder()
WorldArchetype
.boolean isEnabled()
Entity.transferToWorld(org.spongepowered.api.world.World)
.boolean loadOnStartup()
boolean doesKeepSpawnLoaded()
boolean doesGenerateSpawnOnLoad()
long getSeed()
boolean isSeedRandomized()
GameMode getGameMode()
GeneratorType getGeneratorType()
Collection<WorldGeneratorModifier> getGeneratorModifiers()
boolean usesMapFeatures()
Examples include Villages, Temples, etc.
boolean isHardcore()
boolean areCommandsAllowed()
boolean doesGenerateBonusChest()
This only applies on the initial load of the World
created via the WorldProperties
created from this settings.
DimensionType getDimensionType()
PortalAgentType getPortalAgentType()
PortalAgentType
for the world.Difficulty getDifficulty()
boolean isPVPEnabled()
DataContainer getGeneratorSettings()
DataContainer
of any extra settings required by the
generator.SerializationBehavior getSerializationBehavior()
SerializationBehavior
that worlds built from this will use.