类 PrepareItemCraftEvent


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

  • 方法详细资料

    • getRecipe

      @Nullable public @Nullable 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.

    • getInventory

      @NotNull public @NotNull 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()
      检查此事件是否由工具修复操作而非合成配方触发。
      返回:
      如果这是修复则返回 true

      原文:Check if this event was triggered by a tool repair operation rather than a crafting recipe.

    • getHandlers

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

      @NotNull public static @NotNull HandlerList getHandlerList()