LevelData

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.LevelData;

Members

Getter
script.zs
// LevelData.dayTime as long
myLevelData.dayTime

Return Type: long

Getter
script.zs
// LevelData.difficulty as Difficulty
myLevelData.difficulty

Return Type: Difficulty

Getter
script.zs
// LevelData.gameTime as long
myLevelData.gameTime

Return Type: long

Getter
script.zs
// LevelData.hardcore as bool
myLevelData.hardcore

Return Type: bool

Getter
script.zs
// LevelData.isDifficultyLocked as bool
myLevelData.isDifficultyLocked

Return Type: bool

Getter
script.zs
// LevelData.raining as bool
myLevelData.raining

Return Type: bool

Setter
script.zs
// LevelData.raining = (raining as bool);
myLevelData.raining = myBool;

Parameters:

raining Type: bool
Getter
script.zs
// LevelData.spawnAngle as float
myLevelData.spawnAngle

Return Type: float

Getter
script.zs
// LevelData.thundering as bool
myLevelData.thundering

Return Type: bool

Getter
script.zs
// LevelData.xSpawn as int
myLevelData.xSpawn

Return Type: int

Getter
script.zs
// LevelData.ySpawn as int
myLevelData.ySpawn

Return Type: int

Getter
script.zs
// LevelData.zSpawn as int
myLevelData.zSpawn

Return Type: int