Class EmiHopperFilteringRecipe

java.lang.Object
emi.dev.emi.emi.api.recipe.EmiIngredientRecipe
emi.dev.emi.emi.recipe.btw.filtering.EmiHopperFilteringRecipe
All Implemented Interfaces:
EmiRecipe

public class EmiHopperFilteringRecipe extends EmiIngredientRecipe
  • Constructor Details

    • EmiHopperFilteringRecipe

      public EmiHopperFilteringRecipe(Tag filterTag, Tag filterStack)
  • Method Details

    • getCategory

      public EmiRecipeCategory getCategory()
      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.
    • getId

      public ResourceLocation getId()
      Returns:
      The unique id of the recipe, or null. If null, the recipe cannot be serialized.
    • getIngredient

      protected EmiIngredient getIngredient()
      Specified by:
      getIngredient in class EmiIngredientRecipe
    • getStacks

      protected List<EmiStack> getStacks()
      Specified by:
      getStacks in class EmiIngredientRecipe
    • getRecipeContext

      protected EmiRecipe getRecipeContext(EmiStack stack, int offset)
      Specified by:
      getRecipeContext in class EmiIngredientRecipe
    • getDisplayHeight

      public int getDisplayHeight()
      Specified by:
      getDisplayHeight in interface EmiRecipe
      Overrides:
      getDisplayHeight in class EmiIngredientRecipe
      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.
    • getCatalysts

      public List<EmiIngredient> getCatalysts()
      Returns:
      A list of ingredients associated with the creation of the recipe. Catalysts are considered the same as workstations in the recipe, not broken down as a requirement. However, catalysts will consider this recipe a use when exploring recipes.
    • 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 EmiIngredientRecipe