Package emi.dev.emi.emi.handler
Class CraftingRecipeHandler
java.lang.Object
emi.dev.emi.emi.handler.CraftingRecipeHandler
- All Implemented Interfaces:
EmiRecipeHandler<WorkbenchContainer>,StandardRecipeHandler<WorkbenchContainer>
public class CraftingRecipeHandler
extends Object
implements StandardRecipeHandler<WorkbenchContainer>
-
Field Summary
Fields inherited from interface emi.dev.emi.emi.api.recipe.handler.EmiRecipeHandler
NOT_ENOUGH_INGREDIENTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCraftingSlots(WorkbenchContainer handler) getInputSources(WorkbenchContainer handler) @Nullable SlotgetOutputSlot(WorkbenchContainer handler) 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
alwaysDisplaySupport, getTooltipMethods inherited from interface emi.dev.emi.emi.api.recipe.handler.StandardRecipeHandler
canCraft, craft, getCraftingSlots, getInventory, render
-
Constructor Details
-
CraftingRecipeHandler
public CraftingRecipeHandler()
-
-
Method Details
-
getInputSources
- Specified by:
getInputSourcesin interfaceStandardRecipeHandler<WorkbenchContainer>- 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<WorkbenchContainer>- Returns:
- The slots where inputs should be placed to perform crafting.
-
getOutputSlot
- Specified by:
getOutputSlotin interfaceStandardRecipeHandler<WorkbenchContainer>- Returns:
- The output slot for recipe handlers that support instant interaction, like crafting tables. For handlers that have processing time, or where this concept is otherwise inapplicable, null.
-
supportsRecipe
- Specified by:
supportsRecipein interfaceEmiRecipeHandler<WorkbenchContainer>- Returns:
- Whether the handler is applicable for the provided recipe.
-