NeoForgeIItemStackExpansions
Expands
This class expands
IItemStack, meaning that the content found on this page can be called on that type directly.
Members
canPerformAction(action as ItemAbility) as bool
Checks if this item can perform the given script.zs
ItemAbility.Returns: True if it can perform the action, false otherwise.
myIItemStack.canPerformAction(myItemAbility);Parameters:
Return Type:
bool
getBurnTime(manager as IRecipeManager<?>) as int
myIItemStack.getBurnTime(myIRecipeManager);Parameters:
manager: IRecipeManager<?> Type: IRecipeManager<?>
Return Type:
int
getCapability(cap as ItemCapability<Void, T>) as T?
myIItemStack.getCapability<T>(myItemCapability);Parameters:
cap: ItemCapability<Void, T> Type: ItemCapability<Void, T>
Return Type:
T?
getCapabilityWithContext(cap as ItemCapability<C, T>, context as C?) as T?
myIItemStack.getCapabilityWithContext<C, T>(myItemCapability, myC);Parameters:
cap: ItemCapability<C, T> Type: ItemCapability<C, T> context: C? Type: C?
Return Type:
T?
setBurnTime(time as int, manager as IRecipeManager<?>)
Sets the burn time of this ingredient, for use in the furnace and other machinesscript.zs
myIItemStack.setBurnTime(500, myIRecipeManager);Parameters:
time: int Type: int
- the new burn time manager: IRecipeManager<?> Type: IRecipeManager<?>