Class EmiHopperFilteringRecipe
java.lang.Object
emi.dev.emi.emi.api.recipe.EmiIngredientRecipe
emi.dev.emi.emi.recipe.btw.filtering.EmiHopperFilteringRecipe
- All Implemented Interfaces:
EmiRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from class emi.dev.emi.emi.api.recipe.EmiIngredientRecipe
EmiIngredientRecipe.PageManager, EmiIngredientRecipe.PageSlotWidget -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWidgets(WidgetHolder widgets) Called to add widgets that display the recipe.intgetId()protected EmiIngredientprotected EmiRecipegetRecipeContext(EmiStack stack, int offset) Methods inherited from class emi.dev.emi.emi.api.recipe.EmiIngredientRecipe
getDisplayWidth, getInputs, getOutputs, supportsRecipeTreeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface emi.dev.emi.emi.api.recipe.EmiRecipe
hideCraftable
-
Constructor Details
-
EmiHopperFilteringRecipe
-
-
Method Details
-
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
- Returns:
- The unique id of the recipe, or null. If null, the recipe cannot be serialized.
-
getIngredient
- Specified by:
getIngredientin classEmiIngredientRecipe
-
getStacks
- Specified by:
getStacksin classEmiIngredientRecipe
-
getRecipeContext
- Specified by:
getRecipeContextin classEmiIngredientRecipe
-
getDisplayHeight
public int getDisplayHeight()- Specified by:
getDisplayHeightin interfaceEmiRecipe- Overrides:
getDisplayHeightin classEmiIngredientRecipe- 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.
SeeWidgetHolder.getHeight()when adding widgets for the EMI adjusted height.
-
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
Description copied from interface:EmiRecipeCalled 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 respectWidgetHolder.getHeight().- Specified by:
addWidgetsin interfaceEmiRecipe- Overrides:
addWidgetsin classEmiIngredientRecipe
-