public class IngredientRegistry extends java.lang.Object implements IIngredientRegistry
| Constructor and Description |
|---|
IngredientRegistry(java.util.Map<java.lang.Class,java.util.List> ingredientsMap,
com.google.common.collect.ImmutableMap<java.lang.Class,IIngredientHelper> ingredientHelperMap,
com.google.common.collect.ImmutableMap<java.lang.Class,IIngredientRenderer> ingredientRendererMap) |
| Modifier and Type | Method and Description |
|---|---|
<V> void |
addIngredientsAtRuntime(java.lang.Class<V> ingredientClass,
java.util.List<V> ingredients)
Add new ingredients to JEI at runtime.
|
java.util.List<net.minecraft.item.ItemStack> |
getFuels()
Returns an unmodifiable list of all the ItemStacks that can be used as fuel in a vanilla furnace.
|
<V> IIngredientHelper<V> |
getIngredientHelper(java.lang.Class<V> ingredientClass)
Returns the appropriate ingredient helper for this ingredient class
|
<V> IIngredientHelper<V> |
getIngredientHelper(V ingredient)
Returns the appropriate ingredient helper for this ingredient.
|
<V> IIngredientRenderer<V> |
getIngredientRenderer(java.lang.Class<V> ingredientClass)
Returns the ingredient renderer for this ingredient class.
|
<V> IIngredientRenderer<V> |
getIngredientRenderer(V ingredient)
Returns the ingredient renderer for this ingredient.
|
<V> java.util.List<V> |
getIngredients(java.lang.Class<V> ingredientClass)
Returns an unmodifiable list of all the ingredients known to JEI, of the specified class.
|
java.util.List<net.minecraft.item.ItemStack> |
getPotionIngredients()
Returns an unmodifiable list of all the ItemStacks that return true to isPotionIngredient.
|
java.util.Collection<java.lang.Class> |
getRegisteredIngredientClasses()
Returns an unmodifiable collection of all registered ingredient classes.
|
public IngredientRegistry(java.util.Map<java.lang.Class,java.util.List> ingredientsMap,
com.google.common.collect.ImmutableMap<java.lang.Class,IIngredientHelper> ingredientHelperMap,
com.google.common.collect.ImmutableMap<java.lang.Class,IIngredientRenderer> ingredientRendererMap)
public <V> java.util.List<V> getIngredients(java.lang.Class<V> ingredientClass)
IIngredientRegistrygetIngredients in interface IIngredientRegistrypublic <V> IIngredientHelper<V> getIngredientHelper(V ingredient)
IIngredientRegistrygetIngredientHelper in interface IIngredientRegistrypublic <V> IIngredientHelper<V> getIngredientHelper(java.lang.Class<V> ingredientClass)
IIngredientRegistrygetIngredientHelper in interface IIngredientRegistrypublic <V> IIngredientRenderer<V> getIngredientRenderer(V ingredient)
IIngredientRegistrygetIngredientRenderer in interface IIngredientRegistrypublic <V> IIngredientRenderer<V> getIngredientRenderer(java.lang.Class<V> ingredientClass)
IIngredientRegistrygetIngredientRenderer in interface IIngredientRegistrypublic java.util.Collection<java.lang.Class> getRegisteredIngredientClasses()
IIngredientRegistrygetRegisteredIngredientClasses in interface IIngredientRegistrypublic java.util.List<net.minecraft.item.ItemStack> getFuels()
IIngredientRegistrygetFuels in interface IIngredientRegistrypublic java.util.List<net.minecraft.item.ItemStack> getPotionIngredients()
IIngredientRegistrygetPotionIngredients in interface IIngredientRegistrypublic <V> void addIngredientsAtRuntime(java.lang.Class<V> ingredientClass,
java.util.List<V> ingredients)
IIngredientRegistryaddIngredientsAtRuntime in interface IIngredientRegistry