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