2015-04-17 02:09:12 +02:00
|
|
|
package techreborn.client.container;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.inventory.Slot;
|
|
|
|
import techreborn.client.SlotOutput;
|
|
|
|
import techreborn.tiles.TileBlastFurnace;
|
|
|
|
|
|
|
|
public class ContainerBlastFurnace extends TechRebornContainer {
|
|
|
|
|
2015-04-24 15:20:09 +02:00
|
|
|
EntityPlayer player;
|
|
|
|
|
|
|
|
TileBlastFurnace tile;
|
2015-04-17 02:09:12 +02:00
|
|
|
|
|
|
|
@Override
|
2015-04-24 15:20:09 +02:00
|
|
|
public boolean canInteractWith(EntityPlayer player)
|
2015-04-17 02:09:12 +02:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2015-04-24 15:20:09 +02:00
|
|
|
public int tickTime;
|
2015-04-17 02:09:12 +02:00
|
|
|
|
2015-04-24 15:20:09 +02:00
|
|
|
public ContainerBlastFurnace(TileBlastFurnace tileblastfurnace,
|
|
|
|
EntityPlayer player)
|
|
|
|
{
|
|
|
|
tile = tileblastfurnace;
|
|
|
|
this.player = player;
|
|
|
|
|
|
|
|
// input
|
2015-05-10 22:39:19 +02:00
|
|
|
this.addSlotToContainer(new Slot(tileblastfurnace.inventory, 0, 40, 25));//Input 1
|
|
|
|
this.addSlotToContainer(new Slot(tileblastfurnace.inventory, 1, 40, 43));//Input 2
|
2015-04-24 15:20:09 +02:00
|
|
|
// outputs
|
2015-05-10 22:39:19 +02:00
|
|
|
this.addSlotToContainer(new SlotOutput(tileblastfurnace.inventory, 2, 100, 35));//Output 1
|
|
|
|
this.addSlotToContainer(new SlotOutput(tileblastfurnace.inventory, 3, 118, 35));//Output 2
|
2015-04-24 15:20:09 +02:00
|
|
|
|
|
|
|
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-04-17 02:09:12 +02:00
|
|
|
|
|
|
|
}
|