Class TooltipElementSpellEntry


public class TooltipElementSpellEntry extends TooltipElementText
  • Constructor Details

  • Method Details

    • isVisible

      protected boolean isVisible(net.minecraft.world.item.ItemStack stack)
      Description copied from class: TooltipElement
      Whether this tooltip element should be visible for the given item stack. Used to conditionally render elements based on item tags or state.
      Overrides:
      isVisible in class TooltipElementText
    • getColour

      protected int getColour(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getColour in class TooltipElementText
    • getText

      protected net.minecraft.network.chat.Component getText(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getText in class TooltipElementText
    • 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)
      Description copied from class: TooltipElement
      Draws the background layer of this element.
      Overrides:
      drawBackground in class TooltipElementText
    • drawForeground

      protected void drawForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, int mouseX, int mouseY)
      Description copied from class: TooltipElement
      Draws the foreground layer of this element.
      Overrides:
      drawForeground in class TooltipElementText