BlockCapability
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.neoforge.api.capability.BlockCapability;
Extends
BlockCapability<C, T> extends BaseCapability<C, T>
.
Members
getCapability(level as Level, pos as BlockPos, state as BlockState, blockEntity as BlockEntity, context as U) as T?
// BlockCapability<C,T>.getCapability<T, U>(level as Level, pos as BlockPos, state as BlockState, blockEntity as BlockEntity, context as U) as T?;myBlockCapability.getCapability<T, U>(myLevel, myBlockPos, myBlockState, myBlockEntity, myU);
Parameters:
Return Type:
T?
Getter
// BlockCapability<C,T>.name as ResourceLocationmyBlockCapability.name
Return Type:
ResourceLocation