public interface IRecipeCategoryExtension
| Modifier and Type | Method and Description |
|---|---|
default void |
drawInfo(int recipeWidth,
int recipeHeight,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw additional info about the recipe.
|
default java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipStrings(double mouseX,
double mouseY)
Get the tooltip for whatever's under the mouse.
|
default boolean |
handleClick(double mouseX,
double mouseY,
int mouseButton)
Called when a player clicks the recipe.
|
void |
setIngredients(IIngredients ingredients)
Gets all the recipe's ingredients by filling out an instance of
IIngredients. |
void setIngredients(IIngredients ingredients)
IIngredients.default void drawInfo(int recipeWidth,
int recipeHeight,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
getTooltipStrings(double, double)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.default java.util.List<net.minecraft.util.text.ITextComponent> getTooltipStrings(double mouseX,
double mouseY)
IGuiIngredientGroup.addTooltipCallback(ITooltipCallback)
To add tooltips for a recipe category, see IRecipeCategory.getTooltipStrings(Object, double, double)mouseX - the X position of the mouse, relative to the recipe.mouseY - the Y position of the mouse, relative to the recipe.default boolean handleClick(double mouseX,
double mouseY,
int mouseButton)
mouseX - the X position of the mouse, relative to the recipe.mouseY - the Y position of the mouse, relative to the recipe.mouseButton - the current mouse event button.