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 interface
WorldTemplate.Builder
static interface
WorldTemplate.Factory
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default WorldTemplate.Builder
asBuilder()
static WorldTemplate.Builder
builder()
java.util.Optional<java.lang.Boolean>
commands()
java.util.Optional<RegistryReference<Difficulty>>
difficulty()
java.util.Optional<Component>
displayName()
java.util.Optional<RegistryReference<GameMode>>
gameMode()
WorldGenerationConfig
generationConfig()
ChunkGenerator
generator()
java.util.Optional<java.lang.Boolean>
hardcore()
boolean
loadOnStartup()
static WorldTemplate
overworld()
static WorldTemplate
overworldCaves()
boolean
performsSpawnLogic()
java.util.Optional<java.lang.Boolean>
pvp()
java.util.Optional<SerializationBehavior>
serializationBehavior()
java.util.Optional<Vector3i>
spawnPosition()
static WorldTemplate
theEnd()
static WorldTemplate
theNether()
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()
-
-