public class ModIngredientRegistration extends java.lang.Object implements IModIngredientRegistration
Constructor and Description |
---|
ModIngredientRegistration() |
Modifier and Type | Method and Description |
---|---|
IngredientRegistry |
createIngredientRegistry() |
<V> void |
register(java.lang.Class<V> ingredientClass,
java.util.Collection<V> allIngredients,
IIngredientHelper<V> ingredientHelper,
IIngredientRenderer<V> ingredientRenderer)
Register a new type of ingredient.
|
public <V> void register(@Nullable java.lang.Class<V> ingredientClass, @Nullable java.util.Collection<V> allIngredients, @Nullable IIngredientHelper<V> ingredientHelper, @Nullable IIngredientRenderer<V> ingredientRenderer)
IModIngredientRegistration
register
in interface IModIngredientRegistration
ingredientClass
- The class of the ingredient.allIngredients
- A collection of every to be displayed in the ingredient list.ingredientHelper
- The ingredient helper to allows JEI to get information about ingredients for searching and other purposes.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.public IngredientRegistry createIngredientRegistry()