MCBlockDisplayReader
One of MCWorld’s supertype, used for display calculation.
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.
Methods
Gets if can see sky at a given position
Returns: The block state at the position.
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter pos | Type BlockPos | Description The position to look up. |
Gets the block state at a given position.
Returns: The block state at the position.
Return Type: MCBlockState
Parameter | Type | Description |
---|---|---|
Parameter pos | Type BlockPos | Description The position to look up. |
Gets the light level at a given position
Returns: The light level at the position
Return Type: int
Parameter | Type | Description |
---|---|---|
Parameter pos | Type BlockPos | Description The position to look up. |
Gets the tile entity at a given position.
Returns: The tile entity.
Return Type: MCTileEntity?
Parameter | Type | Description |
---|---|---|
Parameter pos | Type BlockPos | Description The position of the tile entity. |