diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-06-17 08:12:18 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-06-17 08:12:18 +0300 |
| commit | dc3df3edd5843bde0c1335d6a8e460b2c832aa48 (patch) | |
| tree | af13bfeee567f2351e35e1ef176d168fe37c8aac /ihl/processing/invslots/InvSlotUpgradeIHL.java | |
| parent | 1da8dcd58647e34c9af94ceeecaeaf3b0d08c48c (diff) | |
full project files
Diffstat (limited to 'ihl/processing/invslots/InvSlotUpgradeIHL.java')
| -rw-r--r-- | ihl/processing/invslots/InvSlotUpgradeIHL.java | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/ihl/processing/invslots/InvSlotUpgradeIHL.java b/ihl/processing/invslots/InvSlotUpgradeIHL.java deleted file mode 100644 index 5c1fff9..0000000 --- a/ihl/processing/invslots/InvSlotUpgradeIHL.java +++ /dev/null @@ -1,61 +0,0 @@ -package ihl.processing.invslots;
-
-import ic2.core.Ic2Items;
-import ic2.core.block.TileEntityInventory;
-import ic2.core.block.invslot.InvSlot;
-import ihl.utils.IHLUtils;
-import net.minecraft.item.ItemStack;
-
-public class InvSlotUpgradeIHL extends InvSlot {
-
- public InvSlotUpgradeIHL(int count) {
- super(count);
- }
-
- public InvSlotUpgradeIHL(TileEntityInventory base, int oldStartIndex, Access access, int count, InvSide side) {
- super(base, "invSlotUpgrade", oldStartIndex, access, count, side);
- }
-
- public double getPowerConsumtionMultiplier() {
- double base = 1d;
- for (int i = 0; i < this.size(); i++) {
- if (IHLUtils.isItemStacksIsEqual(this.get(i), Ic2Items.overclockerUpgrade, false)) {
- int i1 = this.get(i).stackSize;
- while (i1-- > 0 && base < 600) {
- base *= 1.6f;
- }
- }
- }
- return base;
- }
-
- public float getProgressMultiplier() {
- float base = 1f;
- for (int i = 0; i < this.size(); i++) {
- if (IHLUtils.isItemStacksIsEqual(this.get(i), Ic2Items.overclockerUpgrade, false)) {
- int i1 = this.get(i).stackSize;
- while (i1-- > 0 && base < 600) {
- base *= 1.428571429f;
- }
- }
- }
- return base;
- }
-
- public int getAdditionalEnergyStorage() {
- int base = 0;
- for (int i = 0; i < this.size(); i++) {
- if (IHLUtils.isItemStacksIsEqual(this.get(i), Ic2Items.energyStorageUpgrade, false)) {
- base += this.get(i).stackSize * 10000;
- }
- }
- return base;
- }
-
- @Override
- public boolean accepts(ItemStack stack) {
- return IHLUtils.isItemStacksIsEqual(stack, Ic2Items.overclockerUpgrade, false) ||
- IHLUtils.isItemStacksIsEqual(stack, Ic2Items.energyStorageUpgrade, false);
- }
-
-}
|
