Uses tooltip for flasks
This commit is contained in:
parent
d490f295a0
commit
3ad0969644
2 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,7 @@ package WayofTime.bloodmagic.potion.item;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import WayofTime.bloodmagic.util.helper.TextHelper;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
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)
|
||||
{
|
||||
PotionUtils.addPotionTooltip(stack, tooltip, 1.0F);
|
||||
tooltip.add("");
|
||||
tooltip.add(TextHelper.localizeEffect("tooltip.BloodMagic.potion.uses", stack.getMaxDamage() - stack.getItemDamage()));
|
||||
}
|
||||
|
||||
// @Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue