use of mods.railcraft.common.gui.tooltips.ToolTip in project Railcraft by Railcraft.
the class ItemFirestoneRefined method addInformation.
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List<String> info, boolean adv) {
String tipTag = getUnlocalizedName() + ".tips.charged";
if (stack.getItemDamage() >= stack.getMaxDamage() - 5)
tipTag = getUnlocalizedName() + ".tips.empty";
ToolTip tip = ToolTip.buildToolTip(tipTag);
if (tip != null)
info.addAll(tip.convertToStrings());
}
Aggregations