public interface IRecipeRegistry
IJeiRuntime.getRecipeRegistry()
.Modifier and Type | Method and Description |
---|---|
void |
addRecipe(java.lang.Object recipe)
Add a new recipe while the game is running.
|
void |
addSmeltingRecipe(java.util.List<net.minecraft.item.ItemStack> inputs,
net.minecraft.item.ItemStack output)
Add a new smelting recipe while the game is running.
|
<V> IFocus<V> |
createFocus(IFocus.Mode mode,
V ingredient)
Returns a new focus.
|
<T extends IRecipeWrapper> |
createRecipeLayoutDrawable(IRecipeCategory<T> recipeCategory,
T recipeWrapper,
IFocus focus)
Returns a drawable recipe layout, for addons that want to draw the layouts somewhere.
|
java.util.List<net.minecraft.item.ItemStack> |
getCraftingItems(IRecipeCategory recipeCategory)
Returns an unmodifiable collection of ItemStacks that can craft the recipes from recipeCategory.
|
java.util.List<net.minecraft.item.ItemStack> |
getCraftingItems(IRecipeCategory recipeCategory,
IFocus focus)
Deprecated.
since JEI 4.2.8. Use
getCraftingItems(IRecipeCategory) |
java.util.List<IRecipeCategory> |
getRecipeCategories()
Returns an unmodifiable list of all Recipe Categories
|
<V> java.util.List<IRecipeCategory> |
getRecipeCategories(IFocus<V> focus)
Returns a list of Recipe Categories for the focus.
|
java.util.List<IRecipeCategory> |
getRecipeCategories(java.util.List<java.lang.String> recipeCategoryUids)
Returns an unmodifiable list of Recipe Categories
|
<T> IRecipeHandler<T> |
getRecipeHandler(java.lang.Class<? extends T> recipeClass)
Returns the IRecipeHandler associated with the recipeClass or null if there is none
|
IRecipeTransferHandler |
getRecipeTransferHandler(net.minecraft.inventory.Container container,
IRecipeCategory recipeCategory)
Returns the recipe transfer handler for the given container and category, if one exists.
|
<T extends IRecipeWrapper> |
getRecipeWrappers(IRecipeCategory<T> recipeCategory)
Returns a list of Recipe Wrappers in recipeCategory.
|
<T extends IRecipeWrapper,V> |
getRecipeWrappers(IRecipeCategory<T> recipeCategory,
IFocus<V> focus)
Returns a list of Recipe Wrappers in the recipeCategory that have the focus.
|
void |
removeRecipe(java.lang.Object recipe)
Remove a recipe while the game is running.
|
@Nullable <T> IRecipeHandler<T> getRecipeHandler(java.lang.Class<? extends T> recipeClass)
java.util.List<IRecipeCategory> getRecipeCategories()
java.util.List<IRecipeCategory> getRecipeCategories(java.util.List<java.lang.String> recipeCategoryUids)
<V> IFocus<V> createFocus(IFocus.Mode mode, V ingredient)
<V> java.util.List<IRecipeCategory> getRecipeCategories(IFocus<V> focus)
<T extends IRecipeWrapper,V> java.util.List<T> getRecipeWrappers(IRecipeCategory<T> recipeCategory, IFocus<V> focus)
<T extends IRecipeWrapper> java.util.List<T> getRecipeWrappers(IRecipeCategory<T> recipeCategory)
@Deprecated java.util.List<net.minecraft.item.ItemStack> getCraftingItems(IRecipeCategory recipeCategory, @Nullable IFocus focus)
getCraftingItems(IRecipeCategory)
IModRegistry.addRecipeCategoryCraftingItem(ItemStack, String...)
.
This takes the current focus into account, so that if the focus mode is set to Input and the focus is included in the craftingItems, it is the only one returned.
java.util.List<net.minecraft.item.ItemStack> getCraftingItems(IRecipeCategory recipeCategory)
IModRegistry.addRecipeCategoryCraftingItem(ItemStack, String...)
.@Nullable IRecipeTransferHandler getRecipeTransferHandler(net.minecraft.inventory.Container container, IRecipeCategory recipeCategory)
container
- The container to transfer items in.recipeCategory
- The type of recipe that the recipe transfer handler acts on.IRecipeTransferRegistry
<T extends IRecipeWrapper> IRecipeLayoutDrawable createRecipeLayoutDrawable(IRecipeCategory<T> recipeCategory, T recipeWrapper, IFocus focus)
recipeCategory
- the recipe category that the recipe belongs torecipeWrapper
- the specific recipe wrapper to draw.focus
- the focus of the recipe layout.void addRecipe(java.lang.Object recipe)
IRecipeHandler.isRecipeValid(Object)
to determine which recipes are hidden, and when a recipe becomes valid you can add it here.
(note that IRecipeHandler.isRecipeValid(Object)
must be true when the recipe is added here for it to work)void addSmeltingRecipe(java.util.List<net.minecraft.item.ItemStack> inputs, net.minecraft.item.ItemStack output)
FurnaceRecipes.smeltingList
are already added by JEI.void removeRecipe(java.lang.Object recipe)