Class RenderTooltipEvent

    • Method Detail

      • getStack

        @Nonnull
        public ItemStack getStack()
        Returns:
        The stack which the tooltip is being rendered for. As tooltips can be drawn without itemstacks, this stack may be empty.
      • getMatrixStack

        public MatrixStack getMatrixStack()
        Returns:
        The MatrixStack of the current rendering context
      • getX

        public int getX()
        Returns:
        The X position of the tooltip box. By default, the mouse X position.
      • getY

        public int getY()
        Returns:
        The Y position of the tooltip box. By default, the mouse Y position.
      • getFontRenderer

        @Nonnull
        public FontRenderer getFontRenderer()
        Returns:
        The FontRenderer instance the current render is using.