Expansion for IItemStack
Link to expansion-for-iitemstack
Methods
Link to methods
Name: canPerformAction
Checks if this item can perform the given ItemAbility.
Returns: True if it can perform the action, false otherwise.
Return Type: boolean
ZenScript CopyIItemStack.canPerformAction(action as ItemAbility) as boolean
Parameter | Type | Description |
---|---|---|
Parameter action | Type ItemAbility | Description The action to perform. |
Name: getCapability
Return Type: @org.openzen.zencode.java.ZenCodeType.Nullable T
ZenScript CopyIItemStack.getCapability<T : Object>(cap as ItemCapability<T,Void>) as @org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter | Type |
---|---|
Parameter cap | Type ItemCapability<T,Void> |
Parameter T | Type Object |
Name: getCapabilityWithContext
Return Type: @org.openzen.zencode.java.ZenCodeType.Nullable T
ZenScript CopyIItemStack.getCapabilityWithContext<T : Object, C : Object>(cap as ItemCapability<T,C>, context as @org.openzen.zencode.java.ZenCodeType.Nullable C) as @org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter | Type |
---|---|
Parameter cap | Type ItemCapability<T,C> |
Parameter context | Type @org.openzen.zencode.java.ZenCodeType.Nullable C |
Parameter T | Type Object |
Parameter C | Type Object |