Package net.minecraftforge.client.event
Class RenderTooltipEvent.Post
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderTooltipEvent
net.minecraftforge.client.event.RenderTooltipEvent.Post
- Direct Known Subclasses:
RenderTooltipEvent.PostBackground
,RenderTooltipEvent.PostText
- Enclosing class:
- RenderTooltipEvent
@Deprecated(since="1.18",
forRemoval=true)
protected abstract static class RenderTooltipEvent.Post
extends RenderTooltipEvent
Deprecated, for removal: This API element is subject to removal in a future version.
Events inheriting from this class are fired at different stages during the tooltip rendering.
Do not use this event directly, use one of its subclasses:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.RenderTooltipEvent
RenderTooltipEvent.Color, RenderTooltipEvent.GatherComponents, RenderTooltipEvent.Post, RenderTooltipEvent.PostBackground, RenderTooltipEvent.PostText, RenderTooltipEvent.Pre
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
Deprecated, for removal: This API element is subject to removal in a future version.private int
Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class net.minecraftforge.client.event.RenderTooltipEvent
components, fr, lines, matrixStack, stack, x, y
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.client.event.RenderTooltipEvent
getComponents, getFontRenderer, getLines, getMatrixStack, getStack, getX, getY
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
width
private final int widthDeprecated, for removal: This API element is subject to removal in a future version. -
height
private final int heightDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
Post
public Post(@Nonnull ItemStack stack, @Nonnull List<? extends FormattedText> textLines, PoseStack matrixStack, int x, int y, @Nonnull Font fr, int width, int height)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getWidth
public int getWidth()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The width of the tooltip box. This is the width of the inner box, not including the border.
-
getHeight
public int getHeight()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The height of the tooltip box. This is the height of the inner box, not including the border.
-