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 . BlockGetter;
Undocumented Interfaces LevelHeightAccessor
, IBlockGetterExtension
Gets the tile entity data for a tile entity at a given position. Returns : The data of the tile entity.
// BlockGetter.getBlockEntityData(pos as BlockPos) as IData;
myBlockGetter . getBlockEntityData( new BlockPos( 0 , 1 , 2 ));
Return Type:
IData
// BlockGetter.getBlockFloorHeight(pos as BlockPos) as double;
myBlockGetter . getBlockFloorHeight(myBlockPos);
Return Type:
double
Gets the block state at a given position. Returns : The block state at the position.
// BlockGetter.getBlockState(pos as BlockPos) as BlockState;
myBlockGetter . getBlockState( new BlockPos( 0 , 1 , 2 ));
Return Type:
BlockState
// BlockGetter.getLightEmission(pos as BlockPos) as int;
myBlockGetter . getLightEmission(myBlockPos);
Return Type:
int
// BlockGetter.maxLightLevel as int
myBlockGetter . maxLightLevel
Return Type:
int