2015-05-09 20:13:43 +02:00
|
|
|
package techreborn.client.container;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
2016-04-12 09:33:38 +02:00
|
|
|
import reborncore.client.gui.BaseSlot;
|
2015-11-08 13:15:45 +01:00
|
|
|
import reborncore.client.gui.SlotOutput;
|
2015-05-09 20:13:43 +02:00
|
|
|
import techreborn.tiles.TileIndustrialElectrolyzer;
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
public class ContainerIndustrialElectrolyzer extends ContainerCrafting
|
|
|
|
{
|
|
|
|
|
|
|
|
public int tickTime;
|
|
|
|
EntityPlayer player;
|
|
|
|
TileIndustrialElectrolyzer tile;
|
|
|
|
|
|
|
|
public ContainerIndustrialElectrolyzer(TileIndustrialElectrolyzer electrolyzer, EntityPlayer player)
|
|
|
|
{
|
|
|
|
super(electrolyzer.crafter);
|
|
|
|
tile = electrolyzer;
|
|
|
|
this.player = player;
|
|
|
|
|
|
|
|
// input
|
2016-04-12 09:33:38 +02:00
|
|
|
this.addSlotToContainer(new BaseSlot(electrolyzer.inventory, 0, 80, 51));
|
|
|
|
this.addSlotToContainer(new BaseSlot(electrolyzer.inventory, 1, 50, 51));
|
2016-03-25 10:47:34 +01:00
|
|
|
// outputs
|
|
|
|
this.addSlotToContainer(new SlotOutput(electrolyzer.inventory, 2, 50, 19));
|
|
|
|
this.addSlotToContainer(new SlotOutput(electrolyzer.inventory, 3, 70, 19));
|
|
|
|
this.addSlotToContainer(new SlotOutput(electrolyzer.inventory, 4, 90, 19));
|
|
|
|
this.addSlotToContainer(new SlotOutput(electrolyzer.inventory, 5, 110, 19));
|
|
|
|
|
|
|
|
// battery
|
2016-04-12 09:33:38 +02:00
|
|
|
this.addSlotToContainer(new BaseSlot(electrolyzer.inventory, 6, 18, 51));
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < 3; ++i)
|
|
|
|
{
|
|
|
|
for (int j = 0; j < 9; ++j)
|
|
|
|
{
|
2016-04-12 09:33:38 +02:00
|
|
|
this.addSlotToContainer(new BaseSlot(player.inventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
|
2016-03-25 10:47:34 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < 9; ++i)
|
|
|
|
{
|
2016-04-12 09:33:38 +02:00
|
|
|
this.addSlotToContainer(new BaseSlot(player.inventory, i, 8 + i * 18, 142));
|
2016-03-25 10:47:34 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean canInteractWith(EntityPlayer player)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
2015-05-09 20:13:43 +02:00
|
|
|
|
|
|
|
}
|