Package top.girlkisser.lazuli.api.item
Class TooltipUtil
java.lang.Object
top.girlkisser.lazuli.api.item.TooltipUtil
Provides misc helpers for item tooltips.
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.chat.ComponentgetFluidTankTooltip(net.neoforged.neoforge.fluids.FluidStack stack, int maxCapacity) Get aComponentfor theFluidStack.static net.minecraft.network.chat.ComponentgetFluidTankTooltip(net.neoforged.neoforge.fluids.IFluidTank tank) Get aComponentfor the tank representing its contents.
-
Method Details
-
getFluidTankTooltip
public static net.minecraft.network.chat.Component getFluidTankTooltip(net.neoforged.neoforge.fluids.IFluidTank tank) Get aComponentfor 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 aComponentfor theFluidStack.- Parameters:
stack- The fluid stack.maxCapacity- The maximum capacity for the fluid stack.- Returns:
- The component.
-