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)
IIngredientRegistryIItemRegistry.getItemList().getIngredients 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 com.google.common.collect.ImmutableCollection<java.lang.Class> getRegisteredIngredientClasses()
IIngredientRegistrygetRegisteredIngredientClasses in interface IIngredientRegistrypublic com.google.common.collect.ImmutableList<net.minecraft.item.ItemStack> getFuels()
IIngredientRegistrygetFuels in interface IIngredientRegistrypublic com.google.common.collect.ImmutableList<net.minecraft.item.ItemStack> getPotionIngredients()
IIngredientRegistrygetPotionIngredients in interface IIngredientRegistrypublic <V> void addIngredientsAtRuntime(@Nullable
java.lang.Class<V> ingredientClass,
@Nullable
java.util.List<V> ingredients)
IIngredientRegistryaddIngredientsAtRuntime in interface IIngredientRegistry