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;
LevelReader
implements the following interfaces:
BlockAndTintGetter
,BlockGetter
Undocumented Interfaces CollisionGetter
, SignalGetter
, NoiseBiomeSource
, IBlockAndTintGetterExtension
, LevelHeightAccessor
, IBlockGetterExtension
// LevelReader.canSeeSkyFromBelowWater(pos as BlockPos) as bool;
myLevelReader . canSeeSkyFromBelowWater(myBlockPos);
Return Type:
bool
Gets the biome at a given position. Returns : The biome at the given position.
// LevelReader.getBiome(pos as BlockPos) as Biome;
myLevelReader . getBiome( new BlockPos( 0 , 1 , 2 ));
Return Type:
Biome
Gets the tile entity data for a tile entity at a given position. Returns : The data of the tile entity.
// LevelReader.getBlockEntityData(pos as BlockPos) as IData;
myLevelReader . getBlockEntityData( new BlockPos( 0 , 1 , 2 ));
Return Type:
IData
// LevelReader.getBlockFloorHeight(pos as BlockPos) as double;
myLevelReader . getBlockFloorHeight(myBlockPos);
Return Type:
double
Gets the block state at a given position. Returns : The block state at the position.
// LevelReader.getBlockState(pos as BlockPos) as BlockState;
myLevelReader . getBlockState( new BlockPos( 0 , 1 , 2 ));
Return Type:
BlockState
// LevelReader.getLightEmission(pos as BlockPos) as int;
myLevelReader . getLightEmission(myBlockPos);
Return Type:
int
// 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
// LevelReader.isClientSide as bool
myLevelReader . isClientSide
Return Type:
bool
Checks if the block at a given position is empty. Returns : Whether the block is empty.
// LevelReader.isEmptyBlock(pos as BlockPos) as bool;
myLevelReader . isEmptyBlock( new BlockPos( 0 , 1 , 2 ));
Return Type:
bool
// LevelReader.isWaterAt(pos as BlockPos) as bool;
myLevelReader . isWaterAt(myBlockPos);
Return Type:
bool
// LevelReader.maxLightLevel as int
myLevelReader . maxLightLevel
Return Type:
int
Gets the height of the sea level. // LevelReader.seaLevel as int
Return Type:
int
// LevelReader.skyDarken as int
Return Type:
int