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.Collection<net.minecraft.item.ItemStack> |
getCraftingItems(IRecipeCategory recipeCategory)
Deprecated.
since JEI 3.11.0. Use
getCraftingItems(IRecipeCategory, IFocus) . |
java.util.List<net.minecraft.item.ItemStack> |
getCraftingItems(IRecipeCategory recipeCategory,
IFocus focus)
Returns an unmodifiable collection of ItemStacks that can craft the recipes from recipeCategory.
|
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
|
java.util.List<IRecipeCategory> |
getRecipeCategoriesWithInput(net.minecraftforge.fluids.FluidStack input)
Deprecated.
since JEI 3.11.0. Use
getRecipeCategories(IFocus) |
java.util.List<IRecipeCategory> |
getRecipeCategoriesWithInput(net.minecraft.item.ItemStack input)
Deprecated.
since JEI 3.11.0. Use
getRecipeCategories(IFocus) |
java.util.List<IRecipeCategory> |
getRecipeCategoriesWithOutput(net.minecraftforge.fluids.FluidStack output)
Deprecated.
since JEI 3.11.0. Use
getRecipeCategories(IFocus) |
java.util.List<IRecipeCategory> |
getRecipeCategoriesWithOutput(net.minecraft.item.ItemStack output)
Deprecated.
since JEI 3.11.0. Use
getRecipeCategories(IFocus) |
<T> IRecipeHandler<T> |
getRecipeHandler(java.lang.Class<? extends T> recipeClass)
Returns the IRecipeHandler associated with the recipeClass or null if there is none
|
java.util.List<java.lang.Object> |
getRecipes(IRecipeCategory recipeCategory)
Deprecated.
since JEI 3.12.0. Use
getRecipeWrappers(IRecipeCategory) |
<V> java.util.List<java.lang.Object> |
getRecipes(IRecipeCategory recipeCategory,
IFocus<V> focus)
Deprecated.
since JEI 3.12.0. Use
getRecipeWrappers(IRecipeCategory, IFocus) |
java.util.List<java.lang.Object> |
getRecipesWithInput(IRecipeCategory recipeCategory,
net.minecraftforge.fluids.FluidStack input)
Deprecated.
since JEI 3.11.0. Use
getRecipeWrappers(IRecipeCategory, IFocus) |
java.util.List<java.lang.Object> |
getRecipesWithInput(IRecipeCategory recipeCategory,
net.minecraft.item.ItemStack input)
Deprecated.
since JEI 3.11.0. Use
getRecipeWrappers(IRecipeCategory, IFocus) |
java.util.List<java.lang.Object> |
getRecipesWithOutput(IRecipeCategory recipeCategory,
net.minecraftforge.fluids.FluidStack output)
Deprecated.
since JEI 3.11.0. Use
getRecipeWrappers(IRecipeCategory, IFocus) |
java.util.List<java.lang.Object> |
getRecipesWithOutput(IRecipeCategory recipeCategory,
net.minecraft.item.ItemStack output)
Deprecated.
since JEI 3.11.0. Use
getRecipeWrappers(IRecipeCategory, IFocus) |
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, @Nullable 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)
java.util.List<net.minecraft.item.ItemStack> getCraftingItems(IRecipeCategory recipeCategory, IFocus focus)
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.
@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
@Nullable <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)
@Deprecated <V> java.util.List<java.lang.Object> getRecipes(IRecipeCategory recipeCategory, IFocus<V> focus)
getRecipeWrappers(IRecipeCategory, IFocus)
@Deprecated java.util.List<java.lang.Object> getRecipes(IRecipeCategory recipeCategory)
getRecipeWrappers(IRecipeCategory)
@Deprecated java.util.Collection<net.minecraft.item.ItemStack> getCraftingItems(IRecipeCategory recipeCategory)
getCraftingItems(IRecipeCategory, IFocus)
.IModRegistry.addRecipeCategoryCraftingItem(ItemStack, String...)
.@Deprecated java.util.List<IRecipeCategory> getRecipeCategoriesWithInput(net.minecraft.item.ItemStack input)
getRecipeCategories(IFocus)
@Deprecated java.util.List<IRecipeCategory> getRecipeCategoriesWithInput(net.minecraftforge.fluids.FluidStack input)
getRecipeCategories(IFocus)
@Deprecated java.util.List<IRecipeCategory> getRecipeCategoriesWithOutput(net.minecraft.item.ItemStack output)
getRecipeCategories(IFocus)
@Deprecated java.util.List<IRecipeCategory> getRecipeCategoriesWithOutput(net.minecraftforge.fluids.FluidStack output)
getRecipeCategories(IFocus)
@Deprecated java.util.List<java.lang.Object> getRecipesWithInput(IRecipeCategory recipeCategory, net.minecraft.item.ItemStack input)
getRecipeWrappers(IRecipeCategory, IFocus)
@Deprecated java.util.List<java.lang.Object> getRecipesWithInput(IRecipeCategory recipeCategory, net.minecraftforge.fluids.FluidStack input)
getRecipeWrappers(IRecipeCategory, IFocus)
@Deprecated java.util.List<java.lang.Object> getRecipesWithOutput(IRecipeCategory recipeCategory, net.minecraft.item.ItemStack output)
getRecipeWrappers(IRecipeCategory, IFocus)
@Deprecated java.util.List<java.lang.Object> getRecipesWithOutput(IRecipeCategory recipeCategory, net.minecraftforge.fluids.FluidStack output)
getRecipeWrappers(IRecipeCategory, IFocus)