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.
import crafttweaker . api.world.data . WritableLevelData;
WritableLevelData
implements the following interfaces:
LevelData
// WritableLevelData.dayTime as long
myWritableLevelData . dayTime
Return Type:
long
// WritableLevelData.difficulty as Difficulty
myWritableLevelData . difficulty
Return Type:
Difficulty
// WritableLevelData.gameTime as long
myWritableLevelData . gameTime
Return Type:
long
// WritableLevelData.hardcore as bool
myWritableLevelData . hardcore
Return Type:
bool
// WritableLevelData.isDifficultyLocked as bool
myWritableLevelData . isDifficultyLocked
Return Type:
bool
// WritableLevelData.raining as bool
myWritableLevelData . raining
Return Type:
bool
// WritableLevelData.raining = (raining as bool);
myWritableLevelData . raining = myBool;
// WritableLevelData.setSpawn(pos as BlockPos, spawnAngle as float);
myWritableLevelData . setSpawn(myBlockPos, myFloat);
Parameters:
spawnAngle: float
Type: float
// WritableLevelData.spawnAngle as float
myWritableLevelData . spawnAngle
Return Type:
float
// WritableLevelData.thundering as bool
myWritableLevelData . thundering
Return Type:
bool