mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
Added rf display to rf items
This commit is contained in:
parent
61f920d2a6
commit
cbaa8095e8
1 changed files with 6 additions and 0 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue