ForgeIItemStackExpansions

Expands

This class expands IItemStack, meaning that the content found on this page can be called on that type directly.

Members

canPerformAction(action as ToolAction) as bool
Checks if this item can perform the given ToolAction.

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

script.zs
// IItemStack.canPerformAction(action as ToolAction) as bool;
myIItemStack.canPerformAction(myToolAction);

Parameters:

action Type: ToolAction - The action to perform.

Return Type: bool