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 Copyimport crafttweaker.api.capability.ICapabilityProvider;
Методы
Link to методы
Name: getCapability
Return Type: T
ZenScript CopyICapabilityProvider.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 CopyICapabilityProvider.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 |