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
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.spawnAngle = (spawnAngle as float);
myWritableLevelData . spawnAngle = myFloat;
Parameters:
spawnAngle: float
Type: float
// WritableLevelData.thundering as bool
myWritableLevelData . thundering
Return Type:
bool
// WritableLevelData.xSpawn as int
myWritableLevelData . xSpawn
Return Type:
int
// WritableLevelData.xSpawn = (xSpawn as int);
myWritableLevelData . xSpawn = myInt;
// WritableLevelData.ySpawn as int
myWritableLevelData . ySpawn
Return Type:
int
// WritableLevelData.ySpawn = (ySpawn as int);
myWritableLevelData . ySpawn = myInt;
// WritableLevelData.zSpawn as int
myWritableLevelData . zSpawn
Return Type:
int
// WritableLevelData.zSpawn = (zSpawn as int);
myWritableLevelData . zSpawn = myInt;