Class TooltipElementText

java.lang.Object
com.binaris.wizardry.client.gui.elements.TooltipElement
com.binaris.wizardry.client.gui.elements.TooltipElementText
Direct Known Subclasses:
TooltipElementSpellEntry, TooltipElementText.TooltipElementItemName, TooltipElementText.TooltipElementManaReadout, TooltipElementUpgradeList

public class TooltipElementText extends TooltipElement
  • Constructor Details

    • TooltipElementText

      public TooltipElementText(String text, net.minecraft.network.chat.Style style, int spaceAfter, TooltipElement... children)
  • Method Details

    • getHeight

      protected int getHeight(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getHeight in class TooltipElement
    • drawBackground

      protected void drawBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, float partialTicks, int mouseX, int mouseY)
      Specified by:
      drawBackground in class TooltipElement
    • drawForeground

      protected void drawForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, int mouseX, int mouseY)
      Specified by:
      drawForeground in class TooltipElement
    • getText

      protected net.minecraft.network.chat.Component getText(net.minecraft.world.item.ItemStack stack)
    • getFontRenderer

      protected net.minecraft.client.gui.Font getFontRenderer(net.minecraft.world.item.ItemStack stack)
    • getColour

      protected int getColour(net.minecraft.world.item.ItemStack stack)
    • getStyle

      protected net.minecraft.network.chat.Style getStyle()
    • isVisible

      protected boolean isVisible(net.minecraft.world.item.ItemStack stack)
      Specified by:
      isVisible in class TooltipElement