Interface TooltipEvent.RenderForge
- Enclosing interface:
- TooltipEvent
@Environment(CLIENT)
public static interface TooltipEvent.RenderForge
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResult
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.
-
Method Details
-
renderTooltip
net.minecraft.world.InteractionResult 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 differences
in 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:
- Returning
InteractionResult.FAIL
cancels the rendering.
-