Started on Grinder will finish when I get back
This commit is contained in:
parent
7c1e72076b
commit
1238f2d5a6
3 changed files with 64 additions and 6 deletions
|
@ -1,13 +1,52 @@
|
|||
package techreborn.client.container;
|
||||
|
||||
import techreborn.client.SlotOutput;
|
||||
import techreborn.tiles.TileGrinder;
|
||||
import techreborn.tiles.TileMatterFabricator;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.Slot;
|
||||
|
||||
public class ContainerGrinder extends TechRebornContainer{
|
||||
|
||||
EntityPlayer player;
|
||||
|
||||
public ContainerGrinder(TileGrinder tileEntity, EntityPlayer player)
|
||||
TileGrinder tile;
|
||||
|
||||
public int tickTime;
|
||||
|
||||
public ContainerGrinder(TileGrinder tileGrinder,
|
||||
EntityPlayer player)
|
||||
{
|
||||
// TODO Auto-generated constructor stub
|
||||
tile = tileGrinder;
|
||||
this.player = player;
|
||||
|
||||
// input
|
||||
this.addSlotToContainer(new Slot(tileGrinder.inventory, 0, 33, 17));
|
||||
this.addSlotToContainer(new Slot(tileGrinder.inventory, 1, 33, 35));
|
||||
|
||||
|
||||
// outputs
|
||||
this.addSlotToContainer(new Slot(tileGrinder.inventory, 2, 51, 17));
|
||||
this.addSlotToContainer(new Slot(tileGrinder.inventory, 3, 51, 17));
|
||||
this.addSlotToContainer(new Slot(tileGrinder.inventory, 4, 51, 35));
|
||||
this.addSlotToContainer(new Slot(tileGrinder.inventory, 5, 51, 53));
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue