BlockEntity
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
import crafttweaker.api.block.entity.BlockEntity;
Methods
Return Type: BlockPos
// BlockEntity.getBlockPos() as BlockPos
myBlockEntity.getBlockPos();
Return Type: BlockState
// BlockEntity.getBlockState() as BlockState
myBlockEntity.getBlockState();
Return Type: Level
// BlockEntity.getLevel() as Level
myBlockEntity.getLevel();
Return Type: boolean
// BlockEntity.hasLevel() as boolean
myBlockEntity.hasLevel();
Return Type: void
BlockEntity.updateData(data as MapData) as void
Parameter | Type | Description |
---|---|---|
Parameter data | Type MapData | Description No Description Provided |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name blockPos | Type BlockPos | Has Getter true | Has Setter false | Description No Description Provided |
Name blockState | Type BlockState | Has Getter true | Has Setter false | Description No Description Provided |
Name data | Type MapData | Has Getter true | Has Setter false | Description No Description Provided |
Name hasLevel | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name level | Type Level | Has Getter true | Has Setter false | Description No Description Provided |