Interface TooltipEvent.RenderForge
- Enclosing interface:
- TooltipEvent
@Environment(CLIENT)
public static interface TooltipEvent.RenderForge
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResultrenderTooltip(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 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:
- Returning
InteractionResult.FAILcancels the rendering.
-