Package emi.dev.emi.emi.api.recipe
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
-
Field Summary
FieldsFields inherited from class emi.dev.emi.emi.api.recipe.EmiCraftingRecipe
id, input, output, secondaryOutputs, shapeless -
Constructor Summary
ConstructorsConstructorDescriptionEmiPatternCraftingRecipe(List<EmiIngredient> input, EmiStack output, ResourceLocation id) EmiPatternCraftingRecipe(List<EmiIngredient> input, EmiStack output, ResourceLocation id, boolean shapeless) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWidgets(WidgetHolder widgets) Called to add widgets that display the recipe.abstract SlotWidgetgetInputWidget(int slot, int x, int y) abstract SlotWidgetgetOutputWidget(int x, int y) booleanMethods inherited from class emi.dev.emi.emi.api.recipe.EmiCraftingRecipe
canFit, getCategory, getDisplayHeight, getDisplayWidth, getId, getInputs, getOutputsMethods 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
getCatalysts, hideCraftable
-
Field Details
-
unique
protected final int unique
-
-
Constructor Details
-
EmiPatternCraftingRecipe
-
EmiPatternCraftingRecipe
public EmiPatternCraftingRecipe(List<EmiIngredient> input, EmiStack output, ResourceLocation id, boolean shapeless)
-
-
Method Details
-
getInputWidget
-
getOutputWidget
-
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 classEmiCraftingRecipe
-
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.
-