From 5a75d9d47c41cacc7dc7c695ce7f7cd840f51991 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 18 Jun 2019 23:04:37 +0800 Subject: click on arrows --- src/main/java/me/shedaniel/rei/api/RecipeHelper.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java') diff --git a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java index 70373ca51..d6f2f80fa 100644 --- a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java +++ b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java @@ -6,11 +6,14 @@ package me.shedaniel.rei.api; import me.shedaniel.rei.RoughlyEnoughItemsCore; +import me.shedaniel.rei.client.RecipeHelperImpl; +import net.minecraft.client.gui.screen.ingame.AbstractContainerScreen; import net.minecraft.item.ItemStack; import net.minecraft.recipe.Recipe; import net.minecraft.recipe.RecipeManager; import net.minecraft.util.Identifier; +import java.awt.*; import java.util.List; import java.util.Map; import java.util.Optional; @@ -91,6 +94,8 @@ public interface RecipeHelper { */ Map> getRecipesFor(ItemStack stack); + RecipeCategory getCategory(Identifier identifier); + /** * Gets the vanilla recipe manager * @@ -204,7 +209,12 @@ public interface RecipeHelper { */ void registerLiveRecipeGenerator(LiveRecipeGenerator liveRecipeGenerator); + void registerScreenClickArea(Rectangle rectangle, Class screenClass, Identifier... categories); + > void registerRecipes(Identifier category, Class recipeClass, Function mappingFunction); > void registerRecipes(Identifier category, Function recipeFilter, Function mappingFunction); + + List getScreenClickAreas(); + } -- cgit