/
IModIngredientRegistration.java
27 lines (25 loc) · 1.07 KB
/
IModIngredientRegistration.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
package mezz.jei.api.ingredients;
import java.util.Collection;
/**
* Allows registration of new types of ingredients, beyond the basic ItemStack and FluidStack.
* After every mod has registered its ingredients, the {@link IIngredientRegistry} is created from this information.
*
* @since JEI 3.11.0
*/
public interface IModIngredientRegistration {
/**
* Register a new type of ingredient.
*
* @param ingredientClass The class of the ingredient.
* @param allIngredients A collection of every to be displayed in the ingredient list.
* @param ingredientHelper The ingredient helper to allows JEI to get information about ingredients for searching and other purposes.
* @param ingredientRenderer The ingredient render to allow JEI to render these ingredients in the ingredient list.
* This ingredient renderer must be configured to draw in a 16 by 16 pixel space.
*/
<V> void register(
Class<V> ingredientClass,
Collection<V> allIngredients,
IIngredientHelper<V> ingredientHelper,
IIngredientRenderer<V> ingredientRenderer
);
}