Expansion for IItemStack

Link to expansion-for-iitemstack

Link to canPerformAction

Name: canPerformAction

Checks if this item can perform the given ToolAction.

Returns: True if it can perform the action, false otherwise.
Return Type: boolean

ZenScript
Copy
IItemStack.canPerformAction(action as ToolAction) as boolean
ПараметрТипОписание
Параметр
action
Тип
ToolAction
Описание
The action to perform.