Remove old upgrade handler to make way for the new one.
This commit is contained in:
parent
8c3be8366a
commit
34978f7ffe
10 changed files with 25 additions and 166 deletions
|
@ -34,12 +34,11 @@ import net.minecraft.util.text.translation.I18n;
|
|||
import reborncore.common.recipes.RecipeCrafter;
|
||||
import techreborn.client.TechRebornCreativeTabMisc;
|
||||
import techreborn.init.ModItems;
|
||||
import techreborn.utils.upgrade.IMachineUpgrade;
|
||||
|
||||
import java.security.InvalidParameterException;
|
||||
import java.util.List;
|
||||
|
||||
public class ItemUpgrades extends ItemTRNoDestroy implements IMachineUpgrade {
|
||||
public class ItemUpgrades extends ItemTRNoDestroy {
|
||||
|
||||
public static final String[] types = new String[] { "overclock", "transformer", "energy_storage", "range" };
|
||||
|
||||
|
@ -81,25 +80,25 @@ public class ItemUpgrades extends ItemTRNoDestroy implements IMachineUpgrade {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void processUpgrade(RecipeCrafter crafter, ItemStack stack) {
|
||||
// Remember the max speed multiplier can only be 0.99!!
|
||||
|
||||
if (stack.getItemDamage() == 0) {// Check the meta data here
|
||||
crafter.addSpeedMulti(0.2);// This will set the speed multiplier to
|
||||
// 0.8
|
||||
crafter.addPowerMulti(0.5);// This will use eu/tick x 1.5
|
||||
// crafter.addPowerMulti(2); This will use twice the amount of
|
||||
// power.
|
||||
}
|
||||
if (stack.getItemDamage() == 1) {
|
||||
crafter.addPowerMulti(-0.2);// This will use eu/tick 0.8
|
||||
}
|
||||
if (stack.getItemDamage() == 2) {
|
||||
crafter.addSpeedMulti(0.5);
|
||||
crafter.addPowerMulti(1);
|
||||
}
|
||||
}
|
||||
// @Override
|
||||
// public void processUpgrade(RecipeCrafter crafter, ItemStack stack) {
|
||||
// // Remember the max speed multiplier can only be 0.99!!
|
||||
//
|
||||
// if (stack.getItemDamage() == 0) {// Check the meta data here
|
||||
// crafter.addSpeedMulti(0.2);// This will set the speed multiplier to
|
||||
// // 0.8
|
||||
// crafter.addPowerMulti(0.5);// This will use eu/tick x 1.5
|
||||
// // crafter.addPowerMulti(2); This will use twice the amount of
|
||||
// // power.
|
||||
// }
|
||||
// if (stack.getItemDamage() == 1) {
|
||||
// crafter.addPowerMulti(-0.2);// This will use eu/tick 0.8
|
||||
// }
|
||||
// if (stack.getItemDamage() == 2) {
|
||||
// crafter.addSpeedMulti(0.5);
|
||||
// crafter.addPowerMulti(1);
|
||||
// }
|
||||
// }
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue