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()java.util.Optional<java.lang.Boolean>commands()java.util.Optional<RegistryReference<Difficulty>>difficulty()java.util.Optional<Component>displayName()java.util.Optional<RegistryReference<GameMode>>gameMode()WorldGenerationConfiggenerationConfig()ChunkGeneratorgenerator()java.util.Optional<java.lang.Boolean>hardcore()booleanloadOnStartup()static WorldTemplateoverworld()static WorldTemplateoverworldCaves()booleanperformsSpawnLogic()java.util.Optional<java.lang.Boolean>pvp()java.util.Optional<SerializationBehavior>serializationBehavior()java.util.Optional<Vector3i>spawnPosition()static WorldTemplatetheEnd()static WorldTemplatetheNether()java.util.Optional<java.lang.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()
-
displayName
java.util.Optional<Component> displayName()
-
worldType
RegistryReference<WorldType> worldType()
-
generator
ChunkGenerator generator()
-
generationConfig
WorldGenerationConfig generationConfig()
-
gameMode
java.util.Optional<RegistryReference<GameMode>> gameMode()
-
difficulty
java.util.Optional<RegistryReference<Difficulty>> difficulty()
-
serializationBehavior
java.util.Optional<SerializationBehavior> serializationBehavior()
-
loadOnStartup
boolean loadOnStartup()
-
performsSpawnLogic
boolean performsSpawnLogic()
-
hardcore
java.util.Optional<java.lang.Boolean> hardcore()
-
commands
java.util.Optional<java.lang.Boolean> commands()
-
pvp
java.util.Optional<java.lang.Boolean> pvp()
-
viewDistance
java.util.Optional<java.lang.Integer> viewDistance()
-
spawnPosition
java.util.Optional<Vector3i> spawnPosition()
-
asBuilder
default WorldTemplate.Builder asBuilder()
-
-