String tipTag = getUnlocalizedName() + ".tip.charged";
if (stack.getItemDamage() >= stack.getMaxDamage() - 5)
tipTag = getUnlocalizedName() + ".tip.empty";
ToolTip tip = ToolTip.buildToolTip(tipTag);
if (tip != null)
info.addAll(tip.convertToStrings());
}
@Override
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
if (player.canPlayerEdit(x, y, z, side, stack)) {