Move this to the correct location

This commit is contained in:
modmuss50 2017-01-18 11:23:52 +00:00
parent 0872a802da
commit 4e0878b182
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
11 changed files with 0 additions and 185 deletions

View file

@ -31,11 +31,6 @@ public class ItemCloakingDevice extends ItemTRNoDestroy implements IEnergyItemIn
setCreativeTab(TechRebornCreativeTab.instance);
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@Override
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
if (PoweredItem.canUseEnergy(ConfigTechReborn.CloakingDeviceEUTick, itemStack)) {
@ -95,14 +90,4 @@ public class ItemCloakingDevice extends ItemTRNoDestroy implements IEnergyItemIn
itemList.add(uncharged);
itemList.add(charged);
}
public double getDurabilityForDisplay(ItemStack stack) {
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
}