Class TooltipElement

java.lang.Object
com.binaris.wizardry.client.gui.elements.TooltipElement
Direct Known Subclasses:
TooltipElementProgressionBar, TooltipElementSpellList, TooltipElementText

public abstract class TooltipElement extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Space from this tooltip element and the next one
  • Constructor Summary

    Constructors
    Constructor
    Description
    TooltipElement(int spaceAfter, TooltipElement... children)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    drawBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, float partialTicks, int mouseX, int mouseY)
     
    int
    drawBackgroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, float partialTicks, int mouseX, int mouseY)
     
    protected abstract void
    drawForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, int mouseX, int mouseY)
     
    int
    drawForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, int mouseX, int mouseY)
     
    protected abstract int
    getHeight(net.minecraft.world.item.ItemStack stack)
     
    int
    getTotalHeight(net.minecraft.world.item.ItemStack stack)
     
    protected abstract boolean
    isVisible(net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • spaceAfter

      public final int spaceAfter
      Space from this tooltip element and the next one
  • Constructor Details

    • TooltipElement

      public TooltipElement(int spaceAfter, TooltipElement... children)
  • Method Details

    • getTotalHeight

      public int getTotalHeight(net.minecraft.world.item.ItemStack stack)
    • drawBackgroundLayer

      public int drawBackgroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, float partialTicks, int mouseX, int mouseY)
    • drawForegroundLayer

      public int drawForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, int mouseX, int mouseY)
    • isVisible

      protected abstract boolean isVisible(net.minecraft.world.item.ItemStack stack)
    • getHeight

      protected abstract int getHeight(net.minecraft.world.item.ItemStack stack)
    • drawBackground

      protected abstract void drawBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, float partialTicks, int mouseX, int mouseY)
    • drawForeground

      protected abstract void drawForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, int mouseX, int mouseY)