Class EmiKnittingRecipe
java.lang.Object
emi.dev.emi.emi.api.recipe.EmiCraftingRecipe
emi.dev.emi.emi.api.recipe.EmiPatternCraftingRecipe
emi.dev.emi.emi.recipe.btw.special.EmiKnittingRecipe
- All Implemented Interfaces:
EmiRecipe
-
Field Summary
Fields inherited from class emi.dev.emi.emi.api.recipe.EmiPatternCraftingRecipe
uniqueFields inherited from class emi.dev.emi.emi.api.recipe.EmiCraftingRecipe
id, input, output, secondaryOutputs, shapeless -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWidgets(WidgetHolder widgets) Called to add widgets that display the recipe.static intgetAverageWoolColors(List<ItemStack> stackList) getInputWidget(int slot, int x, int y) getOutputWidget(int x, int y) protected booleanbooleanMethods 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
-
Constructor Details
-
EmiKnittingRecipe
-
-
Method Details
-
getAverageWoolColors
-
getInputWidget
- Specified by:
getInputWidgetin classEmiPatternCraftingRecipe
-
getOutputWidget
- Specified by:
getOutputWidgetin classEmiPatternCraftingRecipe
-
supportsRecipeTree
public boolean supportsRecipeTree()- Specified by:
supportsRecipeTreein interfaceEmiRecipe- Overrides:
supportsRecipeTreein classEmiPatternCraftingRecipe- 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.
-
isSmallRecipe
protected boolean isSmallRecipe()- Overrides:
isSmallRecipein classEmiPatternCraftingRecipe
-
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 classEmiPatternCraftingRecipe
-