2015-05-09 20:13:43 +02:00
|
|
|
package techreborn.client.container;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.inventory.Slot;
|
|
|
|
import techreborn.client.SlotOutput;
|
|
|
|
import techreborn.tiles.TileIndustrialElectrolyzer;
|
|
|
|
|
2015-06-26 18:56:09 +02:00
|
|
|
public class ContainerIndustrialElectrolyzer extends ContainerCrafting {
|
2015-05-09 20:13:43 +02:00
|
|
|
|
2015-08-09 12:05:32 +02:00
|
|
|
EntityPlayer player;
|
|
|
|
|
|
|
|
TileIndustrialElectrolyzer tile;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean canInteractWith(EntityPlayer player) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int tickTime;
|
|
|
|
|
|
|
|
public ContainerIndustrialElectrolyzer(TileIndustrialElectrolyzer electrolyzer, EntityPlayer player) {
|
|
|
|
super(electrolyzer.crafter);
|
|
|
|
tile = electrolyzer;
|
|
|
|
this.player = player;
|
|
|
|
|
|
|
|
// input
|
|
|
|
this.addSlotToContainer(new Slot(electrolyzer.inventory, 0, 80, 51));
|
|
|
|
this.addSlotToContainer(new Slot(electrolyzer.inventory, 1, 50, 51));
|
|
|
|
// 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));
|
|
|
|
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < 3; ++i) {
|
|
|
|
for (int j = 0; j < 9; ++j) {
|
|
|
|
this.addSlotToContainer(new Slot(player.inventory, j + i * 9
|
|
|
|
+ 9, 8 + j * 18, 84 + i * 18));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < 9; ++i) {
|
|
|
|
this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18,
|
|
|
|
142));
|
|
|
|
}
|
|
|
|
}
|
2015-05-09 20:13:43 +02:00
|
|
|
|
|
|
|
}
|