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
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.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
Fields inherited from class net.minecraftforge.client.event.RenderTooltipEvent
fr, lines, matrixStack, stack, x, y
-
Constructor Summary
ConstructorDescriptionPost
(ItemStack stack, List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, FontRenderer fr, int width, int height) -
Method Summary
Methods inherited from class net.minecraftforge.client.event.RenderTooltipEvent
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 width -
height
private final int height
-
-
Constructor Details
-
Post
public Post(@Nonnull ItemStack stack, @Nonnull List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, @Nonnull FontRenderer fr, int width, int height)
-
-
Method Details
-
getWidth
public int getWidth()- Returns:
- The width of the tooltip box. This is the width of the inner box, not including the border.
-
getHeight
public int getHeight()- Returns:
- The height of the tooltip box. This is the height of the inner box, not including the border.
-