接口 IRecipeContainer


public interface IRecipeContainer
This interface is to be implemented on Container objects. For GUIs with recipe books, this allows their containers to have recipe completion and ghost recipes in their craft matrices.
  • 方法概要

    修饰符和类型
    方法
    说明
    The crafting matrix of your container, where ingredients go for crafting.
    The crafting result slot of your container, where you take out the crafted item.
  • 方法详细资料

    • getCraftResult

      ResultContainer getCraftResult()
      The crafting result slot of your container, where you take out the crafted item. The equivalent for CraftingMenu is CraftingMenu#resultSlots. The equivalent for InventoryMenu is InventoryMenu#resultSlots.
    • getCraftMatrix

      CraftingContainer getCraftMatrix()
      The crafting matrix of your container, where ingredients go for crafting. The equivalent for CraftingMenu is CraftingMenu#craftSlots. The equivalent for InventoryMenu is InventoryMenu#craftSlots.