2015-04-28 18:58:01 +02:00
|
|
|
package techreborn.client.container;
|
|
|
|
|
2015-04-28 19:05:47 +02:00
|
|
|
import techreborn.client.SlotOutput;
|
2015-04-28 18:58:01 +02:00
|
|
|
import techreborn.tiles.TileGrinder;
|
2015-04-28 19:05:47 +02:00
|
|
|
import techreborn.tiles.TileMatterFabricator;
|
2015-04-28 18:58:01 +02:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
2015-04-28 19:05:47 +02:00
|
|
|
import net.minecraft.inventory.Slot;
|
2015-04-28 18:58:01 +02:00
|
|
|
|
|
|
|
public class ContainerGrinder extends TechRebornContainer{
|
2015-04-28 19:05:47 +02:00
|
|
|
|
|
|
|
EntityPlayer player;
|
2015-04-28 18:58:01 +02:00
|
|
|
|
2015-04-28 19:05:47 +02:00
|
|
|
TileGrinder tile;
|
|
|
|
|
|
|
|
public int tickTime;
|
|
|
|
|
|
|
|
public ContainerGrinder(TileGrinder tileGrinder,
|
|
|
|
EntityPlayer player)
|
2015-04-28 18:58:01 +02:00
|
|
|
{
|
2015-04-28 19:05:47 +02:00
|
|
|
tile = tileGrinder;
|
|
|
|
this.player = player;
|
|
|
|
|
|
|
|
// input
|
2015-04-28 21:21:29 +02:00
|
|
|
this.addSlotToContainer(new Slot(tileGrinder.inventory, 0, 29, 26));
|
|
|
|
this.addSlotToContainer(new Slot(tileGrinder.inventory, 1, 29, 44));
|
2015-04-28 19:05:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
// outputs
|
2015-04-28 21:21:29 +02:00
|
|
|
this.addSlotToContainer(new Slot(tileGrinder.inventory, 2, 73, 35));
|
|
|
|
this.addSlotToContainer(new Slot(tileGrinder.inventory, 3, 91, 35));
|
|
|
|
this.addSlotToContainer(new Slot(tileGrinder.inventory, 4, 109, 35));
|
|
|
|
this.addSlotToContainer(new Slot(tileGrinder.inventory, 5, 127, 35));
|
2015-04-28 19:05:47 +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-28 18:58:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean canInteractWith(EntityPlayer p_75145_1_)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|