Class TooltipElementUpgradeList


public class TooltipElementUpgradeList extends TooltipElementText
  • Constructor Details

    • TooltipElementUpgradeList

      public TooltipElementUpgradeList(ArcaneWorkbenchScreen menu, int spaceAfter)
  • Method Details

    • getHeight

      protected int getHeight(net.minecraft.world.item.ItemStack stack)
      Description copied from class: TooltipElement
      Returns the vertical height of this element (excluding children or spacing).
      Overrides:
      getHeight in class TooltipElementText
    • 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