ICapabilityProvider
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 the capability.
Returns: The found capability or null.
Return Type: @org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter | Type | Description |
---|---|---|
Parameter cap | Type Capability<T> | Description The capability to get. |
Parameter T | Type Object | Description The type of the capability to get. |
Gets the capability for the given side.
Returns: The found capability or null.
Return Type: @org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter | Type | Description |
---|---|---|
Parameter cap | Type Capability<T> | Description The capability to get. |
Parameter side | Type Direction? | Description The side to get the capability from, can be null. |
Parameter T | Type Object | Description The type of the capability to get. |