public class CraftingRecipeCategory
extends java.lang.Object
implements mezz.jei.api.recipe.category.extensions.IExtendableRecipeCategory<net.minecraft.item.crafting.IRecipe,mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICraftingCategoryExtension>
Constructor and Description |
---|
CraftingRecipeCategory(mezz.jei.api.helpers.IGuiHelper guiHelper,
mezz.jei.api.helpers.IModIdHelper modIdHelper) |
Modifier and Type | Method and Description |
---|---|
<R extends net.minecraft.item.crafting.IRecipe> |
addCategoryExtension(java.lang.Class<? extends R> recipeClass,
java.util.function.Function<R,? extends mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICraftingCategoryExtension> extensionFactory) |
void |
draw(net.minecraft.item.crafting.IRecipe recipe,
double mouseX,
double mouseY) |
mezz.jei.api.gui.drawable.IDrawable |
getBackground() |
mezz.jei.api.gui.drawable.IDrawable |
getIcon() |
java.lang.Class<? extends net.minecraft.item.crafting.IRecipe> |
getRecipeClass() |
java.lang.String |
getTitle() |
java.util.List<java.lang.String> |
getTooltipStrings(net.minecraft.item.crafting.IRecipe recipe,
double mouseX,
double mouseY) |
net.minecraft.util.ResourceLocation |
getUid() |
boolean |
handleClick(net.minecraft.item.crafting.IRecipe recipe,
double mouseX,
double mouseY,
int mouseButton) |
void |
setIngredients(net.minecraft.item.crafting.IRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients) |
void |
setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
net.minecraft.item.crafting.IRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients) |
public static final int width
public static final int height
public CraftingRecipeCategory(mezz.jei.api.helpers.IGuiHelper guiHelper, mezz.jei.api.helpers.IModIdHelper modIdHelper)
public net.minecraft.util.ResourceLocation getUid()
getUid
in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.IRecipe>
public java.lang.Class<? extends net.minecraft.item.crafting.IRecipe> getRecipeClass()
getRecipeClass
in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.IRecipe>
public java.lang.String getTitle()
getTitle
in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.IRecipe>
public mezz.jei.api.gui.drawable.IDrawable getBackground()
getBackground
in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.IRecipe>
public mezz.jei.api.gui.drawable.IDrawable getIcon()
getIcon
in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.IRecipe>
public void setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout, net.minecraft.item.crafting.IRecipe recipe, mezz.jei.api.ingredients.IIngredients ingredients)
setRecipe
in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.IRecipe>
public void setIngredients(net.minecraft.item.crafting.IRecipe recipe, mezz.jei.api.ingredients.IIngredients ingredients)
setIngredients
in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.IRecipe>
public void draw(net.minecraft.item.crafting.IRecipe recipe, double mouseX, double mouseY)
draw
in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.IRecipe>
public java.util.List<java.lang.String> getTooltipStrings(net.minecraft.item.crafting.IRecipe recipe, double mouseX, double mouseY)
getTooltipStrings
in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.IRecipe>
public boolean handleClick(net.minecraft.item.crafting.IRecipe recipe, double mouseX, double mouseY, int mouseButton)
handleClick
in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.IRecipe>
public <R extends net.minecraft.item.crafting.IRecipe> void addCategoryExtension(java.lang.Class<? extends R> recipeClass, java.util.function.Function<R,? extends mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICraftingCategoryExtension> extensionFactory)
addCategoryExtension
in interface mezz.jei.api.recipe.category.extensions.IExtendableRecipeCategory<net.minecraft.item.crafting.IRecipe,mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICraftingCategoryExtension>