2015-04-11 11:37:47 +02:00
|
|
|
package techreborn.client.container;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
2016-11-19 13:50:08 +01:00
|
|
|
import reborncore.client.gui.slots.BaseSlot;
|
|
|
|
import reborncore.client.gui.slots.SlotFake;
|
|
|
|
import reborncore.client.gui.slots.SlotFluid;
|
|
|
|
import reborncore.client.gui.slots.SlotOutput;
|
2015-11-08 13:15:45 +01:00
|
|
|
import reborncore.common.container.RebornContainer;
|
2015-04-11 11:37:47 +02:00
|
|
|
import techreborn.tiles.TileQuantumTank;
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public class ContainerQuantumTank extends RebornContainer {
|
2016-03-25 10:47:34 +01:00
|
|
|
public TileQuantumTank tileQuantumTank;
|
|
|
|
public EntityPlayer player;
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public ContainerQuantumTank(TileQuantumTank tileQuantumTank, EntityPlayer player) {
|
2016-03-25 10:47:34 +01:00
|
|
|
super();
|
|
|
|
this.tileQuantumTank = tileQuantumTank;
|
|
|
|
this.player = player;
|
|
|
|
|
|
|
|
this.addSlotToContainer(new SlotFluid(tileQuantumTank.inventory, 0, 80, 17));
|
|
|
|
this.addSlotToContainer(new SlotOutput(tileQuantumTank.inventory, 1, 80, 53));
|
|
|
|
this.addSlotToContainer(new SlotFake(tileQuantumTank.inventory, 2, 59, 42, false, false, 1));
|
|
|
|
|
|
|
|
int i;
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-10-08 21:46:16 +02: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
|
2016-10-08 21:46:16 +02:00
|
|
|
public boolean canInteractWith(EntityPlayer player) {
|
2016-03-25 10:47:34 +01:00
|
|
|
return true;
|
|
|
|
}
|
2015-04-11 11:37:47 +02:00
|
|
|
}
|