Interface ForgeItemStack

All Superinterfaces:
CommandStringDisplayable, IIngredient, IIngredientWithAmount, IItemStack
All Known Implementing Classes:
MCItemStack, MCItemStackMutable

@ZenRegister public interface ForgeItemStack extends IItemStack
  • Method Details

    • setBurnTime

      default void setBurnTime(int time, IRecipeManager manager)
      Sets the burn time of this ingredient, for use in the furnace and other machines
      Parameters:
      time - the new burn time
      DocParam:
      time 500
    • getBurnTime

      default int getBurnTime()
      Specified by:
      getBurnTime in interface IItemStack
    • getBurnTime

      default int getBurnTime(IRecipeManager manager)
    • getRemainingItem

      default IItemStack getRemainingItem(IItemStack stack)
      Description copied from interface: IIngredient
      When this ingredient stack is crafted, what will remain in the grid? Does not check if the stack matches though! Used e.g. in Crafting Table recipes.
      Specified by:
      getRemainingItem in interface IIngredient
      Parameters:
      stack - The stack to provide for this ingredient.
    • canPerformAction

      @Deprecated(forRemoval=true) default boolean canPerformAction(net.minecraftforge.common.ToolAction action)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Method has been moved to an expansion, so it exists in IItemStack for scripters, and ExpandIItemStackForge for modders.
      Checks if this item can perform the given ToolAction.
      Parameters:
      action - The action to perform.
      Returns:
      True if it can perform the action, false otherwise.