/
IModRegistry.java
37 lines (29 loc) · 1.06 KB
/
IModRegistry.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package mezz.jei.api;
import javax.annotation.Nonnull;
import java.util.List;
import mezz.jei.api.recipe.IRecipeCategory;
import mezz.jei.api.recipe.IRecipeHandler;
import mezz.jei.api.recipe.IRecipeTransferHelper;
/**
* Passed to IModPlugins so they can register themselves.
*/
public interface IModRegistry {
/**
* Add the recipe categories provided by this plugin.
*/
void addRecipeCategories(@Nonnull IRecipeCategory... recipeCategories);
/**
* Add the recipe handlers provided by this plugin.
*/
void addRecipeHandlers(@Nonnull IRecipeHandler... recipeHandlers);
/**
* Add the recipe transfer helpers provided by the plugin.
*/
void addRecipeTransferHelpers(@Nonnull IRecipeTransferHelper... recipeTransferHelpers);
/**
* Add the recipes provided by the plugin.
* These can be regular recipes, they will get wrapped by the provided recipe handlers.
* Recipes that are already registered with minecraft's recipe managers don't need to be added here.
*/
void addRecipes(@Nonnull List<Object> recipes);
}