Class EmiPatternCraftingRecipe

java.lang.Object
emi.dev.emi.emi.api.recipe.EmiCraftingRecipe
emi.dev.emi.emi.api.recipe.EmiPatternCraftingRecipe
All Implemented Interfaces:
EmiRecipe
Direct Known Subclasses:
EmiArmorDyeRecipe, EmiFireworkRocketRecipe, EmiFireworkStarFadeRecipe, EmiFireworkStarRecipe, EmiKnittingRecipe, EmiMapCloningRecipe, EmiRepairItemRecipe

public abstract class EmiPatternCraftingRecipe extends EmiCraftingRecipe
  • Field Details

    • unique

      protected final int unique
  • Constructor Details

  • Method Details

    • getInputWidget

      public abstract SlotWidget getInputWidget(int slot, int x, int y)
    • getOutputWidget

      public abstract SlotWidget getOutputWidget(int x, int y)
    • addWidgets

      public void addWidgets(WidgetHolder widgets)
      Description copied from interface: EmiRecipe
      Called to add widgets that display the recipe. Can be used in several places, including the main recipe screen, and tooltips. It is worth noting that EMI cannot grow vertically, so recipes with large heights may be provided less space than requested if they span more than the entire vertical space available in the recipe scren. In the case of very large heights, recipes should respect WidgetHolder.getHeight().
      Specified by:
      addWidgets in interface EmiRecipe
      Overrides:
      addWidgets in class EmiCraftingRecipe
    • supportsRecipeTree

      public boolean supportsRecipeTree()
      Returns:
      Whether the recipe supports the recipe tree. Recipes that do not represent a set of inputs producing a set of outputs should exclude themselves. Example for unsupportable recipes are pattern based recipes, like arbitrary dying.