Class EmiSoulforgeRecipe

java.lang.Object
emi.dev.emi.emi.api.recipe.EmiCraftingRecipe
emi.dev.emi.emi.recipe.btw.EmiSoulforgeRecipe
All Implemented Interfaces:
EmiRecipe

public class EmiSoulforgeRecipe extends EmiCraftingRecipe
  • Constructor Details

  • Method Details

    • getCategory

      public EmiRecipeCategory getCategory()
      Specified by:
      getCategory in interface EmiRecipe
      Overrides:
      getCategory in class EmiCraftingRecipe
      Returns:
      The recipe category this recipe should be displayed under. This is used for grouping in the recipe screen, as well as category display in the recipe tree.
    • getDisplayWidth

      public int getDisplayWidth()
      Specified by:
      getDisplayWidth in interface EmiRecipe
      Overrides:
      getDisplayWidth in class EmiCraftingRecipe
      Returns:
      The width taken up by the recipe's widgets EMI will grow to accomodate requested width. To fit within the default width, recipes should request a width of 134. If a recipe does not support the recipe tree or recipe filling, EMI will not need to add buttons, and it will have space for a width of 160.
    • getDisplayHeight

      public int getDisplayHeight()
      Specified by:
      getDisplayHeight in interface EmiRecipe
      Overrides:
      getDisplayHeight in class EmiCraftingRecipe
      Returns:
      The maximum height taken up by the recipe's widgets. Vertical screen space is capped, however, and EMI may opt to provide less vertical space.
      See WidgetHolder.getHeight() when adding widgets for the EMI adjusted height.
    • 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
    • canFit

      public boolean canFit(int width, int height)
      Overrides:
      canFit in class EmiCraftingRecipe
    • padIngredients

      public static List<EmiIngredient> padIngredients(int width, int height, List<EmiIngredient> in)