diff options
| author | shedaniel <daniel@shedaniel.me> | 2019-11-15 20:09:15 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2019-11-15 20:09:15 +0800 |
| commit | b7246fa0016888fd52c45f9c77df46f9d791e326 (patch) | |
| tree | ca455d73ea2213ef6e5a62855834119715a13fe2 /src/main/java/me/shedaniel/rei/api/RecipeHelper.java | |
| parent | 5c34cd8dae4879e04fd825f423e0ddbf8480668e (diff) | |
| download | RoughlyEnoughItems-b7246fa0016888fd52c45f9c77df46f9d791e326.tar.gz RoughlyEnoughItems-b7246fa0016888fd52c45f9c77df46f9d791e326.tar.bz2 RoughlyEnoughItems-b7246fa0016888fd52c45f9c77df46f9d791e326.zip | |
Using more of the API instead of the Impl
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/RecipeHelper.java | 14 |
1 files changed, 6 insertions, 8 deletions
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<RecipeCategory> getAllCategories(); + List<RecipeCategory<?>> 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<ButtonAreaSupplier> getAutoCraftButtonArea(RecipeCategory category); + Optional<ButtonAreaSupplier> getAutoCraftButtonArea(RecipeCategory<?> category); /** * Registers a speed crafting button area @@ -155,7 +153,7 @@ public interface RecipeHelper { */ Map<RecipeCategory<?>, List<RecipeDisplay>> getAllRecipes(); - List<RecipeDisplay> getAllRecipesFromCategory(RecipeCategory category); + List<RecipeDisplay> getAllRecipesFromCategory(RecipeCategory<?> category); /** * Registers a recipe visibility handler @@ -207,7 +205,7 @@ public interface RecipeHelper { */ void registerLiveRecipeGenerator(LiveRecipeGenerator<?> liveRecipeGenerator); - void registerScreenClickArea(Rectangle rectangle, Class<? extends AbstractContainerScreen> screenClass, Identifier... categories); + void registerScreenClickArea(Rectangle rectangle, Class<? extends AbstractContainerScreen<?>> screenClass, Identifier... categories); <T extends Recipe<?>> void registerRecipes(Identifier category, Class<T> recipeClass, Function<T, RecipeDisplay> mappingFunction); |
