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)
IIngredientRegistry
getIngredients
in interface IIngredientRegistry
public <V> IIngredientHelper<V> getIngredientHelper(V ingredient)
IIngredientRegistry
getIngredientHelper
in interface IIngredientRegistry
public <V> IIngredientHelper<V> getIngredientHelper(java.lang.Class<V> ingredientClass)
IIngredientRegistry
getIngredientHelper
in interface IIngredientRegistry
public <V> IIngredientRenderer<V> getIngredientRenderer(V ingredient)
IIngredientRegistry
getIngredientRenderer
in interface IIngredientRegistry
public <V> IIngredientRenderer<V> getIngredientRenderer(java.lang.Class<V> ingredientClass)
IIngredientRegistry
getIngredientRenderer
in interface IIngredientRegistry
public java.util.Collection<java.lang.Class> getRegisteredIngredientClasses()
IIngredientRegistry
getRegisteredIngredientClasses
in interface IIngredientRegistry
public java.util.List<net.minecraft.item.ItemStack> getFuels()
IIngredientRegistry
getFuels
in interface IIngredientRegistry
public java.util.List<net.minecraft.item.ItemStack> getPotionIngredients()
IIngredientRegistry
getPotionIngredients
in interface IIngredientRegistry
public <V> void addIngredientsAtRuntime(java.lang.Class<V> ingredientClass, java.util.List<V> ingredients)
IIngredientRegistry
addIngredientsAtRuntime
in interface IIngredientRegistry