Added rf display to rf items

This commit is contained in:
Ellpeck 2015-10-04 02:32:40 +02:00
parent 61f920d2a6
commit cbaa8095e8

View file

@ -72,6 +72,12 @@ public abstract class ItemEnergy extends ItemEnergyContainer implements IActAddI
return false;
}
@SuppressWarnings("unchecked")
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool){
list.add(this.getEnergyStored(stack)+"/"+this.getMaxEnergyStored(stack)+" RF");
}
public void setEnergy(ItemStack stack, int energy){
NBTTagCompound compound = stack.getTagCompound();
if(compound == null){