ILevelExtension
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.
Members
getCapability(cap as BlockCapability<C, T>, pos as BlockPos, context as C?) as T?
Parameters:
cap: BlockCapability<C, T>
Type: BlockCapability<C, T>
context: C?
Type: C?
Return Type:
T?
getCapability(cap as BlockCapability<C, T>, pos as BlockPos, state as BlockState, blockEntity as BlockEntity, context as C?) as T?
Parameters:
cap: BlockCapability<C, T>
Type: BlockCapability<C, T>
state: BlockState
Type: BlockState
blockEntity: BlockEntity
Type: BlockEntity
context: C?
Type: C?
Return Type:
T?