diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-05-12 10:36:42 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-05-12 10:36:42 +0800 |
| commit | eab120d5619f972e29afc9776959f6d6096d3926 (patch) | |
| tree | 6e33b3cdac62e9bafd18aee65b42ace098c9028a /src/main/java/me/shedaniel/rei/api/RecipeHelper.java | |
| parent | 7e1e39d8453b0a5b5c7c1045fc5e6bb428b840d8 (diff) | |
| download | RoughlyEnoughItems-eab120d5619f972e29afc9776959f6d6096d3926.tar.gz RoughlyEnoughItems-eab120d5619f972e29afc9776959f6d6096d3926.tar.bz2 RoughlyEnoughItems-eab120d5619f972e29afc9776959f6d6096d3926.zip | |
More docs
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/RecipeHelper.java | 23 |
1 files changed, 23 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 e5e89cdd0..58d67e97a 100644 --- a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java +++ b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java @@ -17,6 +17,9 @@ import java.util.Optional; public interface RecipeHelper { + /** + * @return the api instance of {@link me.shedaniel.rei.client.RecipeHelperImpl} + */ static RecipeHelper getInstance() { return RoughlyEnoughItemsCore.getRecipeHelper(); } @@ -27,14 +30,34 @@ public interface RecipeHelper { List<ItemStack> findCraftableByItems(List<ItemStack> inventoryItems); + /** + * Registers a category + * + * @param category the category to register + */ void registerCategory(RecipeCategory category); + /** + * Registers a recipe display + * + * @param categoryIdentifier the category to display in + * @param display the recipe display + */ void registerDisplay(Identifier categoryIdentifier, RecipeDisplay display); Map<RecipeCategory, List<RecipeDisplay>> getRecipesFor(ItemStack stack); + /** + * Gets the vanilla recipe manager + * + * @return the recipe manager + */ RecipeManager getRecipeManager(); + /** + * Gets all registered categories + * @return the list of categories + */ List<RecipeCategory> getAllCategories(); Map<RecipeCategory, List<RecipeDisplay>> getUsagesFor(ItemStack stack); |
