Interface ClientTooltipEvent.Render
- Enclosing interface:
- ClientTooltipEvent
@Environment(CLIENT)
public static interface ClientTooltipEvent.Render
-
Method Summary
Modifier and TypeMethodDescriptionrenderTooltip(com.mojang.blaze3d.vertex.PoseStack matrices, List<? extends net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> texts, int x, int y) Invoked before the tooltip for a tooltip is rendered.
-
Method Details
-
renderTooltip
EventResult renderTooltip(com.mojang.blaze3d.vertex.PoseStack matrices, List<? extends net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> texts, int x, int y) Invoked before the tooltip for a tooltip is rendered.- Parameters:
matrices- The pose stack.texts- The mutable list of components that are rendered.x- The x-coordinate of the tooltip.y- The y-coordinate of the tooltip.- Returns:
- A
EventResultdetermining the outcome of the event, the execution of the vanilla tooltip rendering may be cancelled by the result.
-