Package emi.dev.emi.emi.handler
Class BulkRecipeHandler
java.lang.Object
emi.dev.emi.emi.handler.BulkRecipeHandler
- All Implemented Interfaces:
EmiRecipeHandler<CookingVesselContainer>,StandardRecipeHandler<CookingVesselContainer>
public class BulkRecipeHandler
extends Object
implements StandardRecipeHandler<CookingVesselContainer>
-
Field Summary
Fields inherited from interface emi.dev.emi.emi.api.recipe.handler.EmiRecipeHandler
NOT_ENOUGH_INGREDIENTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCraft(EmiRecipe recipe, EmiCraftContext<CookingVesselContainer> context) getCraftingSlots(CookingVesselContainer handler) getInputSources(CookingVesselContainer handler) getTooltip(EmiRecipe recipe, EmiCraftContext<CookingVesselContainer> context) booleansupportsRecipe(EmiRecipe recipe) Methods 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.handler.EmiRecipeHandler
alwaysDisplaySupportMethods inherited from interface emi.dev.emi.emi.api.recipe.handler.StandardRecipeHandler
craft, getCraftingSlots, getInventory, getOutputSlot, render
-
Constructor Details
-
BulkRecipeHandler
public BulkRecipeHandler()
-
-
Method Details
-
getInputSources
- Specified by:
getInputSourcesin interfaceStandardRecipeHandler<CookingVesselContainer>- Returns:
- The slots for the recipe handler to source ingredients from. Typically this should include the player's inventory, and crafting slots.
-
getCraftingSlots
- Specified by:
getCraftingSlotsin interfaceStandardRecipeHandler<CookingVesselContainer>- Returns:
- The slots where inputs should be placed to perform crafting.
-
getTooltip
public List<TooltipComponent> getTooltip(EmiRecipe recipe, EmiCraftContext<CookingVesselContainer> context) - Specified by:
getTooltipin interfaceEmiRecipeHandler<CookingVesselContainer>- Returns:
- The tooltip describing status for crafting the recipe
-
canCraft
- Specified by:
canCraftin interfaceEmiRecipeHandler<CookingVesselContainer>- Specified by:
canCraftin interfaceStandardRecipeHandler<CookingVesselContainer>- Returns:
- Whether the handler can craft the provided recipe with the given context
-
supportsRecipe
- Specified by:
supportsRecipein interfaceEmiRecipeHandler<CookingVesselContainer>- Returns:
- Whether the handler is applicable for the provided recipe.
-