Interface ClientTooltipEvent.RenderForge
- Enclosing interface:
- ClientTooltipEvent
@Environment(CLIENT)
public static interface ClientTooltipEvent.RenderForge
-
Method Summary
Modifier and TypeMethodDescriptionrenderTooltip(com.mojang.blaze3d.vertex.PoseStack matrices, List<? extends net.minecraft.network.chat.FormattedText> 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.network.chat.FormattedText> texts, int x, int y) Invoked before the tooltip for a tooltip is rendered.This is only invoked on Forge due to
fundamental differencesin Forge and vanilla tooltip logic.- 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 forge tooltip rendering may be cancelled by the result.
-