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()
Optional<Boolean>
commands()
Optional<RegistryReference<Difficulty>>
difficulty()
Optional<Component>
displayName()
Optional<RegistryReference<GameMode>>
gameMode()
WorldGenerationConfig
generationConfig()
ChunkGenerator
generator()
Optional<Boolean>
hardcore()
boolean
loadOnStartup()
static WorldTemplate
overworld()
static WorldTemplate
overworldCaves()
boolean
performsSpawnLogic()
Optional<Boolean>
pvp()
Optional<SerializationBehavior>
serializationBehavior()
Optional<Vector3i>
spawnPosition()
static WorldTemplate
theEnd()
static WorldTemplate
theNether()
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()
-
-