public class BackpackCraftingRecipeCategoryExtension
extends java.lang.Object
implements mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICustomCraftingCategoryExtension
| Constructor and Description |
|---|
BackpackCraftingRecipeCategoryExtension(BackpackCraftingRecipe recipe) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.ResourceLocation |
getRegistryName()
Return the registry name of the recipe here.
|
net.minecraftforge.common.util.Size2i |
getSize() |
void |
setIngredients(mezz.jei.api.ingredients.IIngredients ingredients)
Gets all the recipe's ingredients by filling out an instance of
IIngredients. |
void |
setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
mezz.jei.api.ingredients.IIngredients ingredients)
This is called to override the vanilla crafting category's
IRecipeCategory.setRecipe(IRecipeLayout, Object, IIngredients)
Note that when this is called, the IGuiItemStackGroup has already been init with the crafting grid layout for convenience. |
public BackpackCraftingRecipeCategoryExtension(BackpackCraftingRecipe recipe)
public net.minecraft.util.ResourceLocation getRegistryName()
mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICraftingCategoryExtensiongetRegistryName in interface mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICraftingCategoryExtensionpublic net.minecraftforge.common.util.Size2i getSize()
getSize in interface mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICraftingCategoryExtensionpublic void setIngredients(mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionIIngredients.setIngredients in interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionpublic void setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICustomCraftingCategoryExtensionIRecipeCategory.setRecipe(IRecipeLayout, Object, IIngredients)
Note that when this is called, the IGuiItemStackGroup has already been init with the crafting grid layout for convenience.
Set the IRecipeLayout properties from this IRecipeCategoryExtension and IIngredients.setRecipe in interface mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICustomCraftingCategoryExtensionrecipeLayout - the layout that needs its properties set.ingredients - the ingredients, already set by the recipeWrapper