Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.world.data.ServerLevelData;

Implemented Interfaces

Link to implemented-interfaces

ServerLevelData implements the following interfaces. That means all methods defined in these interfaces are also available in ServerLevelData

NameTypeHas GetterHas Setter
Name
allowCommands
Type
boolean
Has Getter
true
Has Setter
false
Name
clearWeatherTime
Type
int
Has Getter
true
Has Setter
true
Name
dayTime
Type
ServerLevelData
Has Getter
false
Has Setter
true
Name
gameTime
Type
ServerLevelData
Has Getter
false
Has Setter
true
Name
gameType
Type
GameType
Has Getter
true
Has Setter
true
Name
initialized
Type
boolean
Has Getter
true
Has Setter
false
Name
levelName
Type
string
Has Getter
true
Has Setter
false
Name
rainTime
Type
int
Has Getter
true
Has Setter
true
Name
thunderTime
Type
ServerLevelData
Has Getter
true
Has Setter
true
Name
thundering
Type
ServerLevelData
Has Getter
false
Has Setter
true
Name
wanderingTraderSpawnChance
Type
int
Has Getter
true
Has Setter
true
Name
wanderingTraderSpawnDelay
Type
int
Has Getter
true
Has Setter
true
Name
worldBorder
Type
ServerLevelData
Has Getter
true
Has Setter
true