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 ItemLapotronPack extends ItemArmor implements IEnergyItemInfo {
setMaxStackSize(1);
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@Override
@SideOnly(Side.CLIENT)
public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) {
@ -79,13 +74,6 @@ public class ItemLapotronPack extends ItemArmor implements IEnergyItemInfo {
itemList.add(charged);
}
@Override
public double getDurabilityForDisplay(ItemStack stack) {
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
@Override
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
for (int i = 0; i < player.inventory.getSizeInventory(); i++) {
@ -104,9 +92,4 @@ public class ItemLapotronPack extends ItemArmor implements IEnergyItemInfo {
}
}
@Override
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
}

View file

@ -31,11 +31,6 @@ public class ItemLithiumBatpack extends ItemArmor implements IEnergyItemInfo {
setCreativeTab(TechRebornCreativeTab.instance);
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@Override
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
for (int i = 0; i < player.inventory.getSizeInventory(); i++) {
@ -97,16 +92,5 @@ public class ItemLithiumBatpack extends ItemArmor implements IEnergyItemInfo {
itemList.add(charged);
}
@Override
public double getDurabilityForDisplay(ItemStack stack) {
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
@Override
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
}

View file

@ -45,23 +45,6 @@ public class ItemBattery extends ItemTRNoDestroy implements IEnergyItemInfo {
});
}
@Override
public double getDurabilityForDisplay(ItemStack stack) {
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
@Override
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@Override
public double getMaxPower(ItemStack stack) {
return maxEnergy;

View file

@ -56,11 +56,6 @@ public class ItemChainsaw extends ItemAxe implements IEnergyItemInfo {
});
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@Override
public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState blockIn, BlockPos pos,
EntityLivingBase entityLiving) {
@ -112,15 +107,4 @@ public class ItemChainsaw extends ItemAxe implements IEnergyItemInfo {
return tier;
}
@Override
public double getDurabilityForDisplay(ItemStack stack) {
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
@Override
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
}

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;
}
}

View file

@ -35,11 +35,6 @@ public class ItemDrill extends ItemPickaxe implements IEnergyItemInfo {
this.unpoweredSpeed = unpoweredSpeed;
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@Override
public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState blockIn, BlockPos pos,
EntityLivingBase entityLiving) {
@ -99,15 +94,4 @@ public class ItemDrill extends ItemPickaxe implements IEnergyItemInfo {
return tier;
}
@Override
public double getDurabilityForDisplay(ItemStack stack) {
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
@Override
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
}

View file

@ -75,20 +75,6 @@ public class ItemElectricTreetap extends ItemTRNoDestroy implements IEnergyItemI
return tier;
}
@Override
public double getDurabilityForDisplay(ItemStack stack) {
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@SuppressWarnings({ "rawtypes", "unchecked" })
@SideOnly(Side.CLIENT)
public void getSubItems(Item item,
@ -101,8 +87,4 @@ public class ItemElectricTreetap extends ItemTRNoDestroy implements IEnergyItemI
itemList.add(charged);
}
@Override
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
}

View file

@ -42,11 +42,6 @@ public class ItemJackhammer extends ItemPickaxe implements IEnergyItemInfo {
this.tier = tier;
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@Override
public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState blockIn, BlockPos pos,
EntityLivingBase entityLiving) {
@ -118,18 +113,4 @@ public class ItemJackhammer extends ItemPickaxe implements IEnergyItemInfo {
itemList.add(charged);
}
@Override
public double getDurabilityForDisplay(ItemStack stack) {
if (PoweredItem.getEnergy(stack) > getMaxPower(stack)) {
return 0;
}
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
@Override
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
}

View file

@ -87,11 +87,6 @@ public class ItemNanosaber extends ItemSword implements IEnergyItemInfo {
}
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@SuppressWarnings({ "rawtypes", "unchecked" })
@SideOnly(Side.CLIENT)
public void getSubItems(Item item,
@ -123,10 +118,6 @@ public class ItemNanosaber extends ItemSword implements IEnergyItemInfo {
}
}
@Override
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
@Override
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player,
@ -176,16 +167,6 @@ public class ItemNanosaber extends ItemSword implements IEnergyItemInfo {
}
}
@Override
public double getDurabilityForDisplay(ItemStack stack) {
if (PoweredItem.getEnergy(stack) > getMaxPower(stack)) {
return 0;
}
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
@Override
public boolean isRepairable() {
return false;

View file

@ -40,11 +40,6 @@ public class ItemOmniTool extends ItemPickaxe implements IEnergyItemInfo {
setUnlocalizedName("techreborn.omniTool");
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@Override
public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState blockIn, BlockPos pos,
EntityLivingBase entityLiving) {
@ -134,17 +129,6 @@ public class ItemOmniTool extends ItemPickaxe implements IEnergyItemInfo {
itemList.add(charged);
}
@Override
public double getDurabilityForDisplay(ItemStack stack) {
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
@Override
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
@Override
public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {

View file

@ -40,11 +40,6 @@ public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo {
efficiencyOnProperMaterial = 16F;
}
@Override
public int getRGBDurabilityForDisplay(ItemStack stack) {
return PowerSystem.getDisplayPower().colour;
}
@Override
public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState blockIn, BlockPos pos,
EntityLivingBase entityLiving) {
@ -132,16 +127,5 @@ public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo {
itemList.add(charged);
}
@Override
public double getDurabilityForDisplay(ItemStack stack) {
double charge = (PoweredItem.getEnergy(stack) / getMaxPower(stack));
return 1 - charge;
}
@Override
public boolean showDurabilityBar(ItemStack stack) {
return true;
}
}