WritableLevelData

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

Implements

WritableLevelData implements the following interfaces:

LevelData

Members

Getter
script.zs
// WritableLevelData.dayTime as long
myWritableLevelData.dayTime

Return Type: long

Getter
script.zs
// WritableLevelData.difficulty as Difficulty
myWritableLevelData.difficulty

Return Type: Difficulty

Getter
script.zs
// WritableLevelData.gameTime as long
myWritableLevelData.gameTime

Return Type: long

Getter
script.zs
// WritableLevelData.hardcore as bool
myWritableLevelData.hardcore

Return Type: bool

Getter
script.zs
// WritableLevelData.isDifficultyLocked as bool
myWritableLevelData.isDifficultyLocked

Return Type: bool

Getter
script.zs
// WritableLevelData.raining as bool
myWritableLevelData.raining

Return Type: bool

Setter
script.zs
// WritableLevelData.raining = (raining as bool);
myWritableLevelData.raining = myBool;

Parameters:

raining Type: bool
setSpawn(pos as BlockPos, spawnAngle as float)
script.zs
// WritableLevelData.setSpawn(pos as BlockPos, spawnAngle as float);
myWritableLevelData.setSpawn(myBlockPos, myFloat);

Parameters:

pos Type: BlockPos
spawnAngle Type: float
Getter
script.zs
// WritableLevelData.spawnAngle as float
myWritableLevelData.spawnAngle

Return Type: float

Getter
script.zs
// WritableLevelData.thundering as bool
myWritableLevelData.thundering

Return Type: bool