Uses tooltip for flasks

This commit is contained in:
Nicholas Ignoffo 2016-07-28 21:47:02 -07:00
parent d490f295a0
commit 3ad0969644
2 changed files with 5 additions and 0 deletions

View file

@ -3,6 +3,7 @@ package WayofTime.bloodmagic.potion.item;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import WayofTime.bloodmagic.util.helper.TextHelper;
import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction; import net.minecraft.item.EnumAction;
@ -90,6 +91,8 @@ public class ItemPotionFlask extends Item implements IVariantProvider
public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean advanced) public void addInformation(ItemStack stack, EntityPlayer player, List<String> tooltip, boolean advanced)
{ {
PotionUtils.addPotionTooltip(stack, tooltip, 1.0F); PotionUtils.addPotionTooltip(stack, tooltip, 1.0F);
tooltip.add("");
tooltip.add(TextHelper.localizeEffect("tooltip.BloodMagic.potion.uses", stack.getMaxDamage() - stack.getItemDamage()));
} }
// @Override // @Override

View file

@ -425,6 +425,8 @@ tooltip.BloodMagic.decoration.notSafe=Dangerous for decoration
tooltip.BloodMagic.cuttingFluidRatio=%d/%d uses remaining tooltip.BloodMagic.cuttingFluidRatio=%d/%d uses remaining
tooltip.BloodMagic.potion.uses=%d uses remaining
tooltip.BloodMagic.book.shifting=These symbols seem to be... &oshifting... tooltip.BloodMagic.book.shifting=These symbols seem to be... &oshifting...
tooltip.BloodMagic.willGauge=A strange device that can measure the Demon Will in the Aura. tooltip.BloodMagic.willGauge=A strange device that can measure the Demon Will in the Aura.