Class TooltipUtil

java.lang.Object
top.girlkisser.lazuli.api.item.TooltipUtil

public final class TooltipUtil extends Object
Provides misc helpers for item tooltips.
  • Method Details

    • getFluidTankTooltip

      public static net.minecraft.network.chat.Component getFluidTankTooltip(net.neoforged.neoforge.fluids.IFluidTank tank)
      Get a Component for the tank representing its contents.
      Parameters:
      tank - The tank.
      Returns:
      The component.
    • getFluidTankTooltip

      public static net.minecraft.network.chat.Component getFluidTankTooltip(net.neoforged.neoforge.fluids.FluidStack stack, int maxCapacity)
      Get a Component for the FluidStack.
      Parameters:
      stack - The fluid stack.
      maxCapacity - The maximum capacity for the fluid stack.
      Returns:
      The component.