public interface IModIngredientRegistration
IIngredientManager
is created from this information.
This is given to your IModPlugin.registerIngredients(IModIngredientRegistration)
.Modifier and Type | Method and Description |
---|---|
IColorHelper |
getColorHelper()
Gets an
IColorHelper to help in implementing IIngredientHelper.getColors(Object) for IIngredientHelper s that are being registered. |
ISubtypeManager |
getSubtypeManager() |
<V> void |
register(IIngredientType<V> ingredientType,
java.util.Collection<V> allIngredients,
IIngredientHelper<V> ingredientHelper,
IIngredientRenderer<V> ingredientRenderer)
Register a new type of ingredient.
|
ISubtypeManager getSubtypeManager()
IColorHelper getColorHelper()
IColorHelper
to help in implementing IIngredientHelper.getColors(Object)
for IIngredientHelper
s that are being registered.<V> void register(IIngredientType<V> ingredientType, java.util.Collection<V> allIngredients, IIngredientHelper<V> ingredientHelper, IIngredientRenderer<V> ingredientRenderer)
ingredientType
- The type 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.