Package emi.dev.emi.emi.registry
Class EmiRecipeFiller
java.lang.Object
emi.dev.emi.emi.registry.EmiRecipeFiller
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic BiFunction<Container,EmiRecipe, EmiRecipeHandler<?>> static Map<Class<? extends Container>,List<EmiRecipeHandler<?>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Container>
intbatchesAlreadyPresent(EmiRecipe recipe, StandardRecipeHandler<T> handler, GuiContainer screen) static voidclear()static <T extends Container>
booleanclientFill(StandardRecipeHandler<T> handler, EmiRecipe recipe, GuiContainer screen, List<ItemStack> stacks, EmiCraftContext.Destination destination) static <T extends Container>
List<EmiRecipeHandler<T>>getAllHandlers(GuiContainer screen) static <T extends Container>
@Nullable EmiRecipeHandler<T>getFirstValidHandler(EmiRecipe recipe, GuiContainer screen) getStacks(StandardRecipeHandler<T> handler, EmiRecipe recipe, GuiContainer screen, int amount) static booleanisSupported(EmiRecipe recipe) static <T extends Container>
booleanperformFill(EmiRecipe recipe, GuiContainer screen, EmiFillAction action, int amount)
-
Field Details
-
handlers
-
extraHandlers
-
-
Constructor Details
-
EmiRecipeFiller
public EmiRecipeFiller()
-
-
Method Details
-
clear
public static void clear() -
isSupported
-
getAllHandlers
-
getFirstValidHandler
@Nullable public static <T extends Container> @Nullable EmiRecipeHandler<T> getFirstValidHandler(EmiRecipe recipe, GuiContainer screen) -
performFill
public static <T extends Container> boolean performFill(EmiRecipe recipe, GuiContainer screen, EmiFillAction action, int amount) -
getStacks
@Nullable public static <T extends Container> @Nullable List<ItemStack> getStacks(StandardRecipeHandler<T> handler, EmiRecipe recipe, GuiContainer screen, int amount) -
batchesAlreadyPresent
public static <T extends Container> int batchesAlreadyPresent(EmiRecipe recipe, StandardRecipeHandler<T> handler, GuiContainer screen) -
clientFill
public static <T extends Container> boolean clientFill(StandardRecipeHandler<T> handler, EmiRecipe recipe, GuiContainer screen, List<ItemStack> stacks, EmiCraftContext.Destination destination)
-