Interface WorldTemplate
-
- All Superinterfaces:
DataPackSerializable,DataSerializable,Keyed,ResourceKeyed
public interface WorldTemplate extends ResourceKeyed, DataPackSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceWorldTemplate.Builderstatic interfaceWorldTemplate.Factory
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default WorldTemplate.BuilderasBuilder()static WorldTemplate.Builderbuilder()Optional<Boolean>commands()Optional<RegistryReference<Difficulty>>difficulty()Optional<Component>displayName()Optional<RegistryReference<GameMode>>gameMode()WorldGenerationConfiggenerationConfig()ChunkGeneratorgenerator()Optional<Boolean>hardcore()booleanloadOnStartup()static WorldTemplateoverworld()static WorldTemplateoverworldCaves()booleanperformsSpawnLogic()Optional<Boolean>pvp()Optional<SerializationBehavior>serializationBehavior()Optional<Vector3i>spawnPosition()static WorldTemplatetheEnd()static WorldTemplatetheNether()Optional<Integer>viewDistance()RegistryReference<WorldType>worldType()-
Methods inherited from interface org.spongepowered.api.datapack.DataPackSerializable
type
-
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
Methods inherited from interface org.spongepowered.api.ResourceKeyed
key
-
-
-
-
Method Detail
-
overworld
static WorldTemplate overworld()
-
overworldCaves
static WorldTemplate overworldCaves()
-
theNether
static WorldTemplate theNether()
-
theEnd
static WorldTemplate theEnd()
-
builder
static WorldTemplate.Builder builder()
-
worldType
RegistryReference<WorldType> worldType()
-
generator
ChunkGenerator generator()
-
generationConfig
WorldGenerationConfig generationConfig()
-
gameMode
Optional<RegistryReference<GameMode>> gameMode()
-
difficulty
Optional<RegistryReference<Difficulty>> difficulty()
-
serializationBehavior
Optional<SerializationBehavior> serializationBehavior()
-
loadOnStartup
boolean loadOnStartup()
-
performsSpawnLogic
boolean performsSpawnLogic()
-
asBuilder
default WorldTemplate.Builder asBuilder()
-
-