Some machines can use batteries now

This commit is contained in:
drcrazy 2017-09-16 00:50:43 +03:00
parent 4ccd3ff290
commit 01c04c27bb
23 changed files with 143 additions and 138 deletions

View file

@ -43,7 +43,7 @@ import techreborn.init.ModBlocks;
public class TileGrinder extends TilePowerAcceptor
implements IToolDrop, IInventoryProvider, IRecipeCrafterProvider, IContainerProvider {
public Inventory inventory = new Inventory(6, "TileGrinder", 64, this);
public Inventory inventory = new Inventory(3, "TileGrinder", 64, this);
public RecipeCrafter crafter;
@ -62,7 +62,7 @@ public class TileGrinder extends TilePowerAcceptor
public void update() {
if (!this.world.isRemote) {
super.update();
this.charge(3);
this.charge(2);
}
}
@ -152,9 +152,9 @@ public class TileGrinder extends TilePowerAcceptor
@Override
public BuiltContainer createContainer(final EntityPlayer player) {
return new ContainerBuilder("grinder").player(player.inventory).inventory().hotbar().addInventory()
.tile(this).slot(0, 55, 45).outputSlot(1, 101, 45).syncEnergyValue().syncCrafterValue().addInventory()
.create(this);
return new ContainerBuilder("grinder").player(player.inventory).inventory().hotbar().addInventory().tile(this)
.slot(0, 55, 45).outputSlot(1, 101, 45).energySlot(2, 8, 72).syncEnergyValue().syncCrafterValue()
.addInventory().create(this);
}
@Override