Remove old upgrade handler to make way for the new one.

This commit is contained in:
modmuss50 2017-04-11 00:12:36 +01:00
parent 8c3be8366a
commit 34978f7ffe
10 changed files with 25 additions and 166 deletions

View file

@ -42,14 +42,12 @@ import techreborn.client.container.IContainerProvider;
import techreborn.client.container.builder.BuiltContainer;
import techreborn.client.container.builder.ContainerBuilder;
import techreborn.init.ModBlocks;
import techreborn.utils.upgrade.UpgradeHandler;
public class TileGrinder extends TilePowerAcceptor
implements IWrenchable, IInventoryProvider, IRecipeCrafterProvider, IContainerProvider {
public Inventory inventory = new Inventory(6, "TileGrinder", 64, this);
public UpgradeHandler upgradeHandler;
public RecipeCrafter crafter;
public int capacity = 1000;
@ -61,14 +59,12 @@ implements IWrenchable, IInventoryProvider, IRecipeCrafterProvider, IContainerPr
final int[] outputs = new int[1];
outputs[0] = 1;
this.crafter = new RecipeCrafter(Reference.grinderRecipe, this, 2, 1, this.inventory, inputs, outputs);
this.upgradeHandler = new UpgradeHandler(this.crafter, this.inventory, 2, 3, 4, 5);
}
@Override
public void update() {
if (!this.world.isRemote) {
super.update();
this.upgradeHandler.tick();
//charge(3); TODO
this.charge(3);
}