BlockAndTintGetter
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.BlockAndTintGetter;
Implements
BlockAndTintGetter
implements the following interfaces:
Undocumented Interfaces
IBlockAndTintGetterExtension
,LevelHeightAccessor
,IBlockGetterExtension
Members
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.
myBlockAndTintGetter.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.
myBlockAndTintGetter.getBlockState(new BlockPos(0, 1, 2));
Return Type:
BlockState
Getter
// BlockAndTintGetter.maxLightLevel as intmyBlockAndTintGetter.maxLightLevel
Return Type:
int