public class CraftingRecipeCategory
extends java.lang.Object
implements mezz.jei.api.recipe.category.extensions.IExtendableRecipeCategory<net.minecraft.item.crafting.ICraftingRecipe,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.ICraftingRecipe> |
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.ICraftingRecipe 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.ICraftingRecipe> |
getRecipeClass() |
java.lang.String |
getTitle() |
java.util.List<java.lang.String> |
getTooltipStrings(net.minecraft.item.crafting.ICraftingRecipe recipe,
double mouseX,
double mouseY) |
net.minecraft.util.ResourceLocation |
getUid() |
boolean |
handleClick(net.minecraft.item.crafting.ICraftingRecipe recipe,
double mouseX,
double mouseY,
int mouseButton) |
void |
setIngredients(net.minecraft.item.crafting.ICraftingRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients) |
void |
setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
net.minecraft.item.crafting.ICraftingRecipe 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.ICraftingRecipe>public java.lang.Class<? extends net.minecraft.item.crafting.ICraftingRecipe> getRecipeClass()
getRecipeClass in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.ICraftingRecipe>public java.lang.String getTitle()
getTitle in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.ICraftingRecipe>public mezz.jei.api.gui.drawable.IDrawable getBackground()
getBackground in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.ICraftingRecipe>public mezz.jei.api.gui.drawable.IDrawable getIcon()
getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.ICraftingRecipe>public void setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
net.minecraft.item.crafting.ICraftingRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
setRecipe in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.ICraftingRecipe>public void setIngredients(net.minecraft.item.crafting.ICraftingRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
setIngredients in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.ICraftingRecipe>public void draw(net.minecraft.item.crafting.ICraftingRecipe recipe,
double mouseX,
double mouseY)
draw in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.ICraftingRecipe>public java.util.List<java.lang.String> getTooltipStrings(net.minecraft.item.crafting.ICraftingRecipe recipe,
double mouseX,
double mouseY)
getTooltipStrings in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.ICraftingRecipe>public boolean handleClick(net.minecraft.item.crafting.ICraftingRecipe recipe,
double mouseX,
double mouseY,
int mouseButton)
handleClick in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.item.crafting.ICraftingRecipe>public <R extends net.minecraft.item.crafting.ICraftingRecipe> 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.ICraftingRecipe,mezz.jei.api.recipe.category.extensions.vanilla.crafting.ICraftingCategoryExtension>