Class TooltipUtil

java.lang.Object
com.mrbysco.spoiled.util.TooltipUtil

public class TooltipUtil extends Object
  • Constructor Details

    • TooltipUtil

      public TooltipUtil()
  • Method Details

    • getTooltip

      @Nullable public static @Nullable net.minecraft.network.chat.Component getTooltip(net.minecraft.world.item.ItemStack stack)
      Get spoiling tooltip for itemstack if it has the spoil tag
      Parameters:
      stack - The itemstack to check
      Returns:
      The tooltip to display or null if it doesn't have the spoil tag