51 lines
1.2 KiB
Java
51 lines
1.2 KiB
Java
|
package techreborn.client.container;
|
||
|
|
||
|
import net.minecraft.entity.player.EntityPlayer;
|
||
|
import net.minecraft.inventory.Slot;
|
||
|
import techreborn.client.SlotFake;
|
||
|
import techreborn.client.SlotOutput;
|
||
|
import techreborn.tiles.TileGasTurbine;
|
||
|
|
||
|
public class ContainerGasTurbine extends TechRebornContainer {
|
||
|
public TileGasTurbine tileGasTurbine;
|
||
|
public EntityPlayer player;
|
||
|
|
||
|
public ContainerGasTurbine(TileGasTurbine tileGasTurbine,
|
||
|
EntityPlayer player)
|
||
|
{
|
||
|
super();
|
||
|
this.tileGasTurbine = tileGasTurbine;
|
||
|
this.player = player;
|
||
|
|
||
|
this.addSlotToContainer(new Slot(tileGasTurbine.inventory, 0, 80,
|
||
|
17));
|
||
|
this.addSlotToContainer(new SlotOutput(tileGasTurbine.inventory,
|
||
|
1, 80, 53));
|
||
|
this.addSlotToContainer(new SlotFake(tileGasTurbine.inventory, 2,
|
||
|
59, 42, false, false, 1));
|
||
|
|
||
|
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));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean canInteractWith(EntityPlayer player)
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
}
|