Package emi.dev.emi.emi.recipe.btw
Class EmiSoulforgeRecipe
java.lang.Object
emi.dev.emi.emi.api.recipe.EmiCraftingRecipe
emi.dev.emi.emi.recipe.btw.EmiSoulforgeRecipe
- All Implemented Interfaces:
EmiRecipe
-
Field Summary
Fields inherited from class emi.dev.emi.emi.api.recipe.EmiCraftingRecipe
id, input, output, secondaryOutputs, shapeless -
Constructor Summary
ConstructorsConstructorDescriptionEmiSoulforgeRecipe(ShapedRecipes recipe) EmiSoulforgeRecipe(ShapelessRecipes recipe) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWidgets(WidgetHolder widgets) Called to add widgets that display the recipe.booleancanFit(int width, int height) intintstatic List<EmiIngredient>padIngredients(int width, int height, List<EmiIngredient> in) Methods inherited from class emi.dev.emi.emi.api.recipe.EmiCraftingRecipe
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, supportsRecipeTree
-
Constructor Details
-
EmiSoulforgeRecipe
-
EmiSoulforgeRecipe
-
-
Method Details
-
getCategory
- Specified by:
getCategoryin interfaceEmiRecipe- Overrides:
getCategoryin classEmiCraftingRecipe- 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:
getDisplayWidthin interfaceEmiRecipe- Overrides:
getDisplayWidthin classEmiCraftingRecipe- 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:
getDisplayHeightin interfaceEmiRecipe- Overrides:
getDisplayHeightin classEmiCraftingRecipe- 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.
-
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
-
canFit
public boolean canFit(int width, int height) - Overrides:
canFitin classEmiCraftingRecipe
-
padIngredients
-