public interface IRecipeManager
IJeiRuntime.getRecipeManager()
.Modifier and Type | Method and Description |
---|---|
<T> void |
addRecipe(T recipe,
net.minecraft.util.ResourceLocation recipeCategoryUid)
Deprecated.
|
<V> IFocus<V> |
createFocus(IFocus.Mode mode,
V ingredient)
Returns a new focus.
|
<T> IRecipeLayoutDrawable |
createRecipeLayoutDrawable(IRecipeCategory<T> recipeCategory,
T recipe,
IFocus<?> focus)
Returns a drawable recipe layout, for addons that want to draw the layouts somewhere.
|
default java.util.List<java.lang.Object> |
getRecipeCatalysts(IRecipeCategory<?> recipeCategory)
Deprecated.
since JEI 7.7.1. Use
getRecipeCatalysts(IRecipeCategory, boolean) |
java.util.List<java.lang.Object> |
getRecipeCatalysts(IRecipeCategory<?> recipeCategory,
boolean includeHidden)
Returns an unmodifiable collection of ingredients that can craft the recipes from recipeCategory.
|
default java.util.List<IRecipeCategory<?>> |
getRecipeCategories()
Deprecated.
since JEI 7.7.1. Use
getRecipeCategories(IFocus, boolean) |
<V> java.util.List<IRecipeCategory<?>> |
getRecipeCategories(java.util.Collection<net.minecraft.util.ResourceLocation> recipeCategoryUids,
IFocus<V> focus,
boolean includeHidden)
Returns a list of Recipe Categories for the focus
|
default <V> java.util.List<IRecipeCategory<?>> |
getRecipeCategories(IFocus<V> focus)
Deprecated.
since JEI 7.7.1. Use
getRecipeCategories(IFocus, boolean) |
<V> java.util.List<IRecipeCategory<?>> |
getRecipeCategories(IFocus<V> focus,
boolean includeHidden)
Returns a list of Recipe Categories for the focus.
|
default java.util.List<IRecipeCategory<?>> |
getRecipeCategories(java.util.List<net.minecraft.util.ResourceLocation> recipeCategoryUids)
Deprecated.
since JEI 7.7.1. Use
getRecipeCategories(Collection, IFocus, boolean) |
default IRecipeCategory<?> |
getRecipeCategory(net.minecraft.util.ResourceLocation recipeCategoryUid)
Deprecated.
since JEI 7.7.1. Use
getRecipeCategory(ResourceLocation, boolean) |
IRecipeCategory<?> |
getRecipeCategory(net.minecraft.util.ResourceLocation recipeCategoryUid,
boolean includeHidden)
Returns the recipe category for the given UID.
|
default <T> java.util.List<T> |
getRecipes(IRecipeCategory<T> recipeCategory)
Deprecated.
since JEI 7.7.1. Use
getRecipes(IRecipeCategory, IFocus, boolean) |
default <T,V> java.util.List<T> |
getRecipes(IRecipeCategory<T> recipeCategory,
IFocus<V> focus)
Deprecated.
since JEI 7.7.1. Use
getRecipes(IRecipeCategory, IFocus, boolean) |
<T,V> java.util.List<T> |
getRecipes(IRecipeCategory<T> recipeCategory,
IFocus<V> focus,
boolean includeHidden)
Returns a list of recipes in the recipeCategory that have the focus.
|
<T> void |
hideRecipe(T recipe,
net.minecraft.util.ResourceLocation recipeCategoryUid)
Hides a recipe so that it will not be displayed.
|
void |
hideRecipeCategory(net.minecraft.util.ResourceLocation recipeCategoryUid)
Hide an entire recipe category of recipes from JEI.
|
<T> void |
unhideRecipe(T recipe,
net.minecraft.util.ResourceLocation recipeCategoryUid)
Unhides a recipe that was hidden by
hideRecipe(Object, ResourceLocation)
This can be used by mods that create recipe progression. |
void |
unhideRecipeCategory(net.minecraft.util.ResourceLocation recipeCategoryUid)
Unhides a recipe category that was hidden by
hideRecipeCategory(ResourceLocation) . |
<V> IFocus<V> createFocus(IFocus.Mode mode, V ingredient)
<V> java.util.List<IRecipeCategory<?>> getRecipeCategories(@Nullable IFocus<V> focus, boolean includeHidden)
focus
- an optional search focus to narrow the results onincludeHidden
- set true to include recipe categories that are hidden or have no recipes.<V> java.util.List<IRecipeCategory<?>> getRecipeCategories(java.util.Collection<net.minecraft.util.ResourceLocation> recipeCategoryUids, @Nullable IFocus<V> focus, boolean includeHidden)
recipeCategoryUids
- a list of recipe category uids to retrievefocus
- an optional search focus to narrow the results onincludeHidden
- set true to include recipe categories that are hidden or have no recipes.@Nullable IRecipeCategory<?> getRecipeCategory(net.minecraft.util.ResourceLocation recipeCategoryUid, boolean includeHidden)
<T,V> java.util.List<T> getRecipes(IRecipeCategory<T> recipeCategory, @Nullable IFocus<V> focus, boolean includeHidden)
recipeCategory
- the recipe category to find recipes infocus
- the current search focus, or null if there is no focus.includeHidden
- set true to include recipes that are hidden.java.util.List<java.lang.Object> getRecipeCatalysts(IRecipeCategory<?> recipeCategory, boolean includeHidden)
IRecipeCatalystRegistration.addRecipeCatalyst(Object, ResourceLocation...)
.<T> IRecipeLayoutDrawable createRecipeLayoutDrawable(IRecipeCategory<T> recipeCategory, T recipe, IFocus<?> focus)
recipeCategory
- the recipe category that the recipe belongs torecipe
- the specific recipe to draw.focus
- the focus of the recipe layout.<T> void hideRecipe(T recipe, net.minecraft.util.ResourceLocation recipeCategoryUid)
recipe
- the recipe to hide.recipeCategoryUid
- the unique ID for the recipe category this recipe is a part of.
See VanillaRecipeCategoryUid
for vanilla recipe category UIDs.unhideRecipe(Object, ResourceLocation)
<T> void unhideRecipe(T recipe, net.minecraft.util.ResourceLocation recipeCategoryUid)
hideRecipe(Object, ResourceLocation)
This can be used by mods that create recipe progression.recipe
- the recipe to unhide.recipeCategoryUid
- the unique ID for the recipe category this recipe is a part of.
See VanillaRecipeCategoryUid
for vanilla recipe category UIDs.hideRecipe(Object, ResourceLocation)
void hideRecipeCategory(net.minecraft.util.ResourceLocation recipeCategoryUid)
recipeCategoryUid
- the unique ID for the recipe categoryunhideRecipeCategory(ResourceLocation)
void unhideRecipeCategory(net.minecraft.util.ResourceLocation recipeCategoryUid)
hideRecipeCategory(ResourceLocation)
.
This can be used by mods that create recipe progression.recipeCategoryUid
- the unique ID for the recipe categoryhideRecipeCategory(ResourceLocation)
@Deprecated <T> void addRecipe(T recipe, net.minecraft.util.ResourceLocation recipeCategoryUid)
@Deprecated default java.util.List<IRecipeCategory<?>> getRecipeCategories(java.util.List<net.minecraft.util.ResourceLocation> recipeCategoryUids)
getRecipeCategories(Collection, IFocus, boolean)
@Deprecated default java.util.List<IRecipeCategory<?>> getRecipeCategories()
getRecipeCategories(IFocus, boolean)
@Deprecated default <V> java.util.List<IRecipeCategory<?>> getRecipeCategories(IFocus<V> focus)
getRecipeCategories(IFocus, boolean)
@Nullable default IRecipeCategory<?> getRecipeCategory(net.minecraft.util.ResourceLocation recipeCategoryUid)
getRecipeCategory(ResourceLocation, boolean)
@Deprecated default <T> java.util.List<T> getRecipes(IRecipeCategory<T> recipeCategory)
getRecipes(IRecipeCategory, IFocus, boolean)
@Deprecated default <T,V> java.util.List<T> getRecipes(IRecipeCategory<T> recipeCategory, IFocus<V> focus)
getRecipes(IRecipeCategory, IFocus, boolean)
default java.util.List<java.lang.Object> getRecipeCatalysts(IRecipeCategory<?> recipeCategory)
getRecipeCatalysts(IRecipeCategory, boolean)
IRecipeCatalystRegistration.addRecipeCatalyst(Object, ResourceLocation...)
.