Package emi.dev.emi.emi.handler
Class CoercedRecipeHandler<T extends Container>
java.lang.Object
emi.dev.emi.emi.handler.CoercedRecipeHandler<T>
- All Implemented Interfaces:
EmiRecipeHandler<T>,StandardRecipeHandler<T>
public class CoercedRecipeHandler<T extends Container>
extends Object
implements StandardRecipeHandler<T>
-
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(Container handler) getInputSources(Container handler) getOutputSlot(Container 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
-
CoercedRecipeHandler
-
-
Method Details
-
getOutputSlot
- Specified by:
getOutputSlotin interfaceStandardRecipeHandler<T extends Container>- 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.
-
getInputSources
- Specified by:
getInputSourcesin interfaceStandardRecipeHandler<T extends Container>- 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<T extends Container>- Returns:
- The slots where inputs should be placed to perform crafting.
-
supportsRecipe
- Specified by:
supportsRecipein interfaceEmiRecipeHandler<T extends Container>- Returns:
- Whether the handler is applicable for the provided recipe.
-