Class TooltipUtil
java.lang.Object
com.mrbysco.spoiled.util.TooltipUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable net.minecraft.network.chat.ComponentgetTooltip(net.minecraft.world.item.ItemStack stack) Get spoiling tooltip for itemstack if it has the spoil tag
-
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
-