public interface IGuiClickableArea
Modifier and Type | Method and Description |
---|---|
static IGuiClickableArea |
createBasic(int xPos,
int yPos,
int width,
int height,
net.minecraft.util.ResourceLocation... recipeCategoryUids)
Helper function to create the most basic type of
IGuiClickableArea ,
which displays a recipe category on click. |
net.minecraft.client.renderer.Rectangle2d |
getArea()
The hover/click area for this
IGuiClickableArea . |
default java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipStrings()
Returns the strings to be shown on the tooltip when this area is hovered over.
|
void |
onClick(IFocusFactory focusFactory,
IRecipesGui recipesGui)
Called when the area is clicked.
|
net.minecraft.client.renderer.Rectangle2d getArea()
IGuiClickableArea
.
When hovered, the message from getTooltipStrings()
will be displayed.
When clicked, onClick(IFocusFactory, IRecipesGui)
will be called.default java.util.List<net.minecraft.util.text.ITextComponent> getTooltipStrings()
void onClick(IFocusFactory focusFactory, IRecipesGui recipesGui)
static IGuiClickableArea createBasic(int xPos, int yPos, int width, int height, net.minecraft.util.ResourceLocation... recipeCategoryUids)
IGuiClickableArea
,
which displays a recipe category on click.