aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/RecipeHelper.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-18 23:04:37 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-18 23:04:37 +0800
commit5a75d9d47c41cacc7dc7c695ce7f7cd840f51991 (patch)
tree8bcf1af4dc3846c1669e0f7767fa8e9ddc1a1f6c /src/main/java/me/shedaniel/rei/api/RecipeHelper.java
parente3c936978b5b79cef6b937ab0cedf208d80da714 (diff)
downloadRoughlyEnoughItems-5a75d9d47c41cacc7dc7c695ce7f7cd840f51991.tar.gz
RoughlyEnoughItems-5a75d9d47c41cacc7dc7c695ce7f7cd840f51991.tar.bz2
RoughlyEnoughItems-5a75d9d47c41cacc7dc7c695ce7f7cd840f51991.zip
click on arrows
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/RecipeHelper.java10
1 files changed, 10 insertions, 0 deletions
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<RecipeCategory, List<RecipeDisplay>> 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<? extends AbstractContainerScreen> screenClass, Identifier... categories);
+
<T extends Recipe<?>> void registerRecipes(Identifier category, Class<T> recipeClass, Function<T, RecipeDisplay> mappingFunction);
<T extends Recipe<?>> void registerRecipes(Identifier category, Function<Recipe, Boolean> recipeFilter, Function<T, RecipeDisplay> mappingFunction);
+
+ List<RecipeHelperImpl.ScreenClickArea> getScreenClickAreas();
+
}