LevelReader
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.
import crafttweaker.api.world.LevelReader;
Implements
LevelReader
implements the following interfaces:
BlockAndTintGetter
,BlockGetter
Undocumented Interfaces
CollisionGetter
,SignalGetter
,NoiseBiomeSource
,ILevelReaderExtension
,IBlockAndTintGetterExtension
,LevelHeightAccessor
,IBlockGetterExtension
Members
getBiome(pos as BlockPos) as Biome
getBlockEntityData(pos as BlockPos) as IData
Gets the tile entity data for a tile entity at a given position.script.zs
Returns: The data of the tile entity.
myLevelReader.getBlockEntityData(new BlockPos(0, 1, 2));
Return Type:
IData
getBlockState(pos as BlockPos) as BlockState
Gets the block state at a given position.script.zs
Returns: The block state at the position.
myLevelReader.getBlockState(new BlockPos(0, 1, 2));
Return Type:
BlockState
hasChunk(x as int, z as int) as bool
// LevelReader.hasChunk(x as int, z as int) as bool;myLevelReader.hasChunk(myInt, myInt);
Parameters:
x: int
Type: int
z: int
Type: int
Return Type:
bool
Getter
// LevelReader.isClientSide as boolmyLevelReader.isClientSide
Return Type:
bool
isEmptyBlock(pos as BlockPos) as bool
Getter
// LevelReader.maxLightLevel as intmyLevelReader.maxLightLevel
Return Type:
int
Getter
Gets the height of the sea level.script.zs
// LevelReader.seaLevel as intmyLevelReader.seaLevel
Return Type:
int
Getter
// LevelReader.skyDarken as intmyLevelReader.skyDarken
Return Type:
int