From b7246fa0016888fd52c45f9c77df46f9d791e326 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Fri, 15 Nov 2019 20:09:15 +0800 Subject: Using more of the API instead of the Impl --- src/main/java/me/shedaniel/rei/api/RecipeHelper.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (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 30915a794..3ddfdf7a4 100644 --- a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java +++ b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java @@ -20,10 +20,8 @@ import java.util.function.Predicate; public interface RecipeHelper { - /** - * @return the api instance of {@link me.shedaniel.rei.impl.RecipeHelperImpl} - */ static RecipeHelper getInstance() { + //noinspection deprecation return RoughlyEnoughItemsCore.getRecipeHelper(); } @@ -56,7 +54,7 @@ public interface RecipeHelper { * * @param category the category to register */ - void registerCategory(RecipeCategory category); + void registerCategory(RecipeCategory category); /** * Registers the working stations of a category @@ -106,7 +104,7 @@ public interface RecipeHelper { * * @return the list of categories */ - List getAllCategories(); + List> getAllCategories(); /** * Gets a map of usages for an entry @@ -122,7 +120,7 @@ public interface RecipeHelper { * @param category the category of the display * @return the optional of speed crafting button area */ - Optional getAutoCraftButtonArea(RecipeCategory category); + Optional getAutoCraftButtonArea(RecipeCategory category); /** * Registers a speed crafting button area @@ -155,7 +153,7 @@ public interface RecipeHelper { */ Map, List> getAllRecipes(); - List getAllRecipesFromCategory(RecipeCategory category); + List getAllRecipesFromCategory(RecipeCategory category); /** * Registers a recipe visibility handler @@ -207,7 +205,7 @@ public interface RecipeHelper { */ void registerLiveRecipeGenerator(LiveRecipeGenerator liveRecipeGenerator); - void registerScreenClickArea(Rectangle rectangle, Class screenClass, Identifier... categories); + void registerScreenClickArea(Rectangle rectangle, Class> screenClass, Identifier... categories); > void registerRecipes(Identifier category, Class recipeClass, Function mappingFunction); -- cgit