Interface 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.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • getCraftResult

      CraftResultInventory getCraftResult()
      The crafting result slot of your container, where you take out the crafted item. The equivalent for ContainerWorkbench is ContainerWorkbench#craftResult. The equivalent for ContainerPlayer is ContainerPlayer#craftResult.
    • getCraftMatrix

      CraftingInventory getCraftMatrix()
      The crafting matrix of your container, where ingredients go for crafting. The equivalent for ContainerWorkbench is ContainerWorkbench#craftMatrix. The equivalent for ContainerPlayer is ContainerPlayer#craftMatrix.