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:

  • Field Details

    • width

      private final int width
      Deprecated, for removal: This API element is subject to removal in a future version.
    • height

      private final int height
      Deprecated, 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.