ServerLevelData

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.world.data.ServerLevelData;

Implements

ServerLevelData implements the following interfaces:

WritableLevelData,LevelData

Members

Getter
script.zs
// ServerLevelData.allowCommands as bool
myServerLevelData.allowCommands

Return Type: bool

Getter
script.zs
// ServerLevelData.clearWeatherTime as int
myServerLevelData.clearWeatherTime

Return Type: int

Setter
script.zs
// ServerLevelData.clearWeatherTime = (time as int);
myServerLevelData.clearWeatherTime = myInt;

Parameters:

time Type: int
Getter
script.zs
// ServerLevelData.dayTime as long
myServerLevelData.dayTime

Return Type: long

Setter
script.zs
// ServerLevelData.dayTime = (time as long);
myServerLevelData.dayTime = myLong;

Parameters:

time Type: long
Getter
script.zs
// ServerLevelData.difficulty as Difficulty
myServerLevelData.difficulty

Return Type: Difficulty

Getter
script.zs
// ServerLevelData.gameTime as long
myServerLevelData.gameTime

Return Type: long

Setter
script.zs
// ServerLevelData.gameTime = (time as long);
myServerLevelData.gameTime = myLong;

Parameters:

time Type: long
Getter
script.zs
// ServerLevelData.gameType as GameType
myServerLevelData.gameType

Return Type: GameType

Setter
script.zs
// ServerLevelData.gameType = (gameType as GameType);
myServerLevelData.gameType = myGameType;

Parameters:

gameType Type: GameType
Getter
script.zs
// ServerLevelData.hardcore as bool
myServerLevelData.hardcore

Return Type: bool

Getter
script.zs
// ServerLevelData.initialized as bool
myServerLevelData.initialized

Return Type: bool

Getter
script.zs
// ServerLevelData.isDifficultyLocked as bool
myServerLevelData.isDifficultyLocked

Return Type: bool

Getter
script.zs
// ServerLevelData.levelName as string
myServerLevelData.levelName

Return Type: string

Getter
script.zs
// ServerLevelData.raining as bool
myServerLevelData.raining

Return Type: bool

Setter
script.zs
// ServerLevelData.raining = (raining as bool);
myServerLevelData.raining = myBool;

Parameters:

raining Type: bool
Getter
script.zs
// ServerLevelData.rainTime as int
myServerLevelData.rainTime

Return Type: int

Setter
script.zs
// ServerLevelData.rainTime = (time as int);
myServerLevelData.rainTime = myInt;

Parameters:

time Type: int
setSpawn(pos as BlockPos, spawnAngle as float)
script.zs
// ServerLevelData.setSpawn(pos as BlockPos, spawnAngle as float);
myServerLevelData.setSpawn(myBlockPos, myFloat);

Parameters:

pos Type: BlockPos
spawnAngle Type: float
Getter
script.zs
// ServerLevelData.spawnAngle as float
myServerLevelData.spawnAngle

Return Type: float

Getter
script.zs
// ServerLevelData.thundering as bool
myServerLevelData.thundering

Return Type: bool

Setter
script.zs
// ServerLevelData.thundering = (thundering as bool);
myServerLevelData.thundering = myBool;

Parameters:

thundering Type: bool
Getter
script.zs
// ServerLevelData.thunderTime as int
myServerLevelData.thunderTime

Return Type: int

Setter
script.zs
// ServerLevelData.thunderTime = (time as int);
myServerLevelData.thunderTime = myInt;

Parameters:

time Type: int
Getter
script.zs
// ServerLevelData.wanderingTraderSpawnChance as int
myServerLevelData.wanderingTraderSpawnChance

Return Type: int

Setter
script.zs
// ServerLevelData.wanderingTraderSpawnChance = (chance as int);
myServerLevelData.wanderingTraderSpawnChance = myInt;

Parameters:

chance Type: int
Getter
script.zs
// ServerLevelData.wanderingTraderSpawnDelay as int
myServerLevelData.wanderingTraderSpawnDelay

Return Type: int

Setter
script.zs
// ServerLevelData.wanderingTraderSpawnDelay = (delay as int);
myServerLevelData.wanderingTraderSpawnDelay = myInt;

Parameters:

delay Type: int
Getter
script.zs
// ServerLevelData.worldBorder as Settings
myServerLevelData.worldBorder

Return Type: Settings

Setter
script.zs
// ServerLevelData.worldBorder = (border as Settings);
myServerLevelData.worldBorder = mySettings;

Parameters:

border Type: Settings