ICapabilityProvider

Link to icapabilityprovider

Импорт класса

Link to импорт-класса

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.

ZenScript
Copy
import crafttweaker.api.capability.ICapabilityProvider;

Name: getCapability

Return Type: T

ZenScript
Copy
ICapabilityProvider.getCapability<T : Object>(cap as Capability<T>) as T
ПараметрТипОписание
Параметр
cap
Тип
Capability<T>
Описание
No Description Provided
Параметр
T
Тип
Object
Описание
No Description Provided

Name: getCapability

Return Type: T

ZenScript
Copy
ICapabilityProvider.getCapability<T : Object>(cap as Capability<T>, side as Direction?) as T
ПараметрТипОписание
Параметр
cap
Тип
Capability<T>
Описание
No Description Provided
Параметр
side
Тип
Direction?
Описание
No Description Provided
Параметр
T
Тип
Object
Описание
No Description Provided