public abstract class BlankJEIRecipeCategory<T extends mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension>
extends java.lang.Object
implements mezz.jei.api.recipe.category.IRecipeCategory<T>
| Modifier | Constructor and Description |
|---|---|
protected |
BlankJEIRecipeCategory(mezz.jei.api.gui.drawable.IDrawable icon) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(T recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw extras or additional info about the recipe.
|
mezz.jei.api.gui.drawable.IDrawable |
getIcon()
Icon for the category tab.
|
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipStrings(T recipe,
double mouseX,
double mouseY)
Get the tooltip for whatever's under the mouse.
|
void |
setIngredients(T recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
Sets all the recipe's ingredients by filling out an instance of
IIngredients. |
protected BlankJEIRecipeCategory(mezz.jei.api.gui.drawable.IDrawable icon)
@Nullable public mezz.jei.api.gui.drawable.IDrawable getIcon()
mezz.jei.api.recipe.category.IRecipeCategoryIGuiHelper.createDrawableIngredient(Object) to create a drawable from an ingredient.getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension>public void setIngredients(T recipe, mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIIngredients.
This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.setIngredients in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension>public void draw(T recipe, com.mojang.blaze3d.matrix.MatrixStack matrixStack, double mouseX, double mouseY)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeCategory.getTooltipStrings(Object, double, double)draw in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension>mouseX - the X position of the mouse, relative to the recipe.mouseY - the Y position of the mouse, relative to the recipe.for a simple class for drawing things.,
for useful functions.public java.util.List<net.minecraft.util.text.ITextComponent> getTooltipStrings(T recipe, double mouseX, double mouseY)
mezz.jei.api.recipe.category.IRecipeCategoryIGuiIngredientGroup.addTooltipCallback(ITooltipCallback)getTooltipStrings in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension>mouseX - the X position of the mouse, relative to the recipe.mouseY - the Y position of the mouse, relative to the recipe.