类 PrepareItemCraftEvent


public class PrepareItemCraftEvent extends InventoryEvent
  • 构造器详细资料

  • 方法详细资料

    • getRecipe

      public Recipe getRecipe()
      Get the recipe that has been formed. If this event was triggered by a tool repair, this will be a temporary shapeless recipe representing the repair.
      返回:
      The recipe being crafted.
    • getInventory

      public CraftingInventory getInventory()
      从类复制的说明: InventoryEvent
      获取此事件涉及的主要物品栏.

      原文:Gets the primary Inventory involved in this transaction

      覆盖:
      getInventory 在类中 InventoryEvent
      返回:
      The crafting inventory on which the recipe was formed.
    • isRepair

      public boolean isRepair()
      Check if this event was triggered by a tool repair operation rather than a crafting recipe.
      返回:
      True if this is a repair.
    • getHandlers

      public HandlerList getHandlers()
      覆盖:
      getHandlers 在类中 InventoryEvent
    • getHandlerList

      public static HandlerList getHandlerList()