public class IngredientManager
extends java.lang.Object
implements mezz.jei.api.runtime.IIngredientManager
| Constructor and Description |
|---|
IngredientManager(mezz.jei.api.helpers.IModIdHelper modIdHelper,
IngredientBlacklistInternal blacklist,
java.util.List<mezz.jei.api.ingredients.IIngredientType> registeredIngredientTypes,
java.util.Map<mezz.jei.api.ingredients.IIngredientType,IngredientSet> ingredientsMap,
com.google.common.collect.ImmutableMap<mezz.jei.api.ingredients.IIngredientType,mezz.jei.api.ingredients.IIngredientHelper> ingredientHelperMap,
com.google.common.collect.ImmutableMap<mezz.jei.api.ingredients.IIngredientType,mezz.jei.api.ingredients.IIngredientRenderer> ingredientRendererMap,
boolean enableDebugLogs) |
| Modifier and Type | Method and Description |
|---|---|
<V> void |
addIngredientsAtRuntime(mezz.jei.api.ingredients.IIngredientType<V> ingredientType,
java.util.Collection<V> ingredients) |
<V> void |
addIngredientsAtRuntime(mezz.jei.api.ingredients.IIngredientType<V> ingredientType,
java.util.Collection<V> ingredients,
IngredientFilter ingredientFilter) |
<V> java.util.Collection<V> |
getAllIngredients(mezz.jei.api.ingredients.IIngredientType<V> ingredientType) |
<V> V |
getIngredientByUid(mezz.jei.api.ingredients.IIngredientType<V> ingredientType,
java.lang.String uid) |
<V> mezz.jei.api.ingredients.IIngredientHelper<V> |
getIngredientHelper(mezz.jei.api.ingredients.IIngredientType<V> ingredientType) |
<V> mezz.jei.api.ingredients.IIngredientHelper<V> |
getIngredientHelper(V ingredient) |
<V> mezz.jei.api.ingredients.IIngredientRenderer<V> |
getIngredientRenderer(mezz.jei.api.ingredients.IIngredientType<V> ingredientType) |
<V> mezz.jei.api.ingredients.IIngredientRenderer<V> |
getIngredientRenderer(V ingredient) |
<V> mezz.jei.api.ingredients.IIngredientType<V> |
getIngredientType(java.lang.Class<? extends V> ingredientClass) |
<V> mezz.jei.api.ingredients.IIngredientType<V> |
getIngredientType(V ingredient) |
java.util.Collection<mezz.jei.api.ingredients.IIngredientType> |
getRegisteredIngredientTypes() |
<V> boolean |
isIngredientVisible(V ingredient,
IngredientFilter ingredientFilter) |
<V> boolean |
isValidIngredient(V ingredient) |
<V> void |
removeIngredientsAtRuntime(mezz.jei.api.ingredients.IIngredientType<V> ingredientType,
java.util.Collection<V> ingredients) |
<V> void |
removeIngredientsAtRuntime(mezz.jei.api.ingredients.IIngredientType<V> ingredientType,
java.util.Collection<V> ingredients,
IngredientFilter ingredientFilter) |
public IngredientManager(mezz.jei.api.helpers.IModIdHelper modIdHelper,
IngredientBlacklistInternal blacklist,
java.util.List<mezz.jei.api.ingredients.IIngredientType> registeredIngredientTypes,
java.util.Map<mezz.jei.api.ingredients.IIngredientType,IngredientSet> ingredientsMap,
com.google.common.collect.ImmutableMap<mezz.jei.api.ingredients.IIngredientType,mezz.jei.api.ingredients.IIngredientHelper> ingredientHelperMap,
com.google.common.collect.ImmutableMap<mezz.jei.api.ingredients.IIngredientType,mezz.jei.api.ingredients.IIngredientRenderer> ingredientRendererMap,
boolean enableDebugLogs)
public <V> java.util.Collection<V> getAllIngredients(mezz.jei.api.ingredients.IIngredientType<V> ingredientType)
getAllIngredients in interface mezz.jei.api.runtime.IIngredientManager@Nullable
public <V> V getIngredientByUid(mezz.jei.api.ingredients.IIngredientType<V> ingredientType,
java.lang.String uid)
public <V> boolean isValidIngredient(V ingredient)
public <V> mezz.jei.api.ingredients.IIngredientHelper<V> getIngredientHelper(V ingredient)
getIngredientHelper in interface mezz.jei.api.runtime.IIngredientManagerpublic <V> mezz.jei.api.ingredients.IIngredientHelper<V> getIngredientHelper(mezz.jei.api.ingredients.IIngredientType<V> ingredientType)
getIngredientHelper in interface mezz.jei.api.runtime.IIngredientManagerpublic <V> mezz.jei.api.ingredients.IIngredientRenderer<V> getIngredientRenderer(V ingredient)
getIngredientRenderer in interface mezz.jei.api.runtime.IIngredientManagerpublic <V> mezz.jei.api.ingredients.IIngredientRenderer<V> getIngredientRenderer(mezz.jei.api.ingredients.IIngredientType<V> ingredientType)
getIngredientRenderer in interface mezz.jei.api.runtime.IIngredientManagerpublic java.util.Collection<mezz.jei.api.ingredients.IIngredientType> getRegisteredIngredientTypes()
getRegisteredIngredientTypes in interface mezz.jei.api.runtime.IIngredientManagerpublic <V> void addIngredientsAtRuntime(mezz.jei.api.ingredients.IIngredientType<V> ingredientType,
java.util.Collection<V> ingredients)
addIngredientsAtRuntime in interface mezz.jei.api.runtime.IIngredientManagerpublic <V> void addIngredientsAtRuntime(mezz.jei.api.ingredients.IIngredientType<V> ingredientType,
java.util.Collection<V> ingredients,
IngredientFilter ingredientFilter)
public <V> void removeIngredientsAtRuntime(mezz.jei.api.ingredients.IIngredientType<V> ingredientType,
java.util.Collection<V> ingredients)
removeIngredientsAtRuntime in interface mezz.jei.api.runtime.IIngredientManagerpublic <V> mezz.jei.api.ingredients.IIngredientType<V> getIngredientType(V ingredient)
getIngredientType in interface mezz.jei.api.runtime.IIngredientManagerpublic <V> mezz.jei.api.ingredients.IIngredientType<V> getIngredientType(java.lang.Class<? extends V> ingredientClass)
getIngredientType in interface mezz.jei.api.runtime.IIngredientManagerpublic <V> void removeIngredientsAtRuntime(mezz.jei.api.ingredients.IIngredientType<V> ingredientType,
java.util.Collection<V> ingredients,
IngredientFilter ingredientFilter)
public <V> boolean isIngredientVisible(V ingredient,
IngredientFilter ingredientFilter)