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.
|
com.google.common.collect.ImmutableList<net.minecraft.item.ItemStack> |
getFuels()
Returns a 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> com.google.common.collect.ImmutableList<V> |
getIngredients(java.lang.Class<V> ingredientClass)
Returns a list of all the ingredients known to JEI, of the specified class.
|
com.google.common.collect.ImmutableList<net.minecraft.item.ItemStack> |
getPotionIngredients()
Returns a list of all the ItemStacks that return true to isPotionIngredient.
|
com.google.common.collect.ImmutableCollection<java.lang.Class> |
getRegisteredIngredientClasses()
Returns a list 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> com.google.common.collect.ImmutableList<V> getIngredients(@Nullable java.lang.Class<V> ingredientClass)
IIngredientRegistry
IItemRegistry.getItemList()
.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 com.google.common.collect.ImmutableCollection<java.lang.Class> getRegisteredIngredientClasses()
IIngredientRegistry
getRegisteredIngredientClasses
in interface IIngredientRegistry
public com.google.common.collect.ImmutableList<net.minecraft.item.ItemStack> getFuels()
IIngredientRegistry
getFuels
in interface IIngredientRegistry
public com.google.common.collect.ImmutableList<net.minecraft.item.ItemStack> getPotionIngredients()
IIngredientRegistry
getPotionIngredients
in interface IIngredientRegistry
public <V> void addIngredientsAtRuntime(@Nullable java.lang.Class<V> ingredientClass, @Nullable java.util.List<V> ingredients)
IIngredientRegistry
addIngredientsAtRuntime
in interface IIngredientRegistry