Added gui texture for the Icompressor
Added container for Icompressor
This commit is contained in:
parent
b99cac1a1c
commit
72471b9dae
3 changed files with 39 additions and 3 deletions
|
@ -1,15 +1,51 @@
|
||||||
package techreborn.client.container;
|
package techreborn.client.container;
|
||||||
|
|
||||||
|
import techreborn.client.SlotOutput;
|
||||||
|
import techreborn.tiles.TileAlloySmelter;
|
||||||
import techreborn.tiles.TileGrinder;
|
import techreborn.tiles.TileGrinder;
|
||||||
import techreborn.tiles.TileImplosionCompressor;
|
import techreborn.tiles.TileImplosionCompressor;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.inventory.Slot;
|
||||||
|
|
||||||
public class ContainerImplosionCompressor extends TechRebornContainer{
|
public class ContainerImplosionCompressor extends TechRebornContainer{
|
||||||
|
|
||||||
public ContainerImplosionCompressor(TileImplosionCompressor tilecompresser,
|
EntityPlayer player;
|
||||||
|
|
||||||
|
TileImplosionCompressor tile;
|
||||||
|
|
||||||
|
|
||||||
|
public int tickTime;
|
||||||
|
|
||||||
|
public ContainerImplosionCompressor(TileImplosionCompressor tilecompressor,
|
||||||
EntityPlayer player)
|
EntityPlayer player)
|
||||||
{
|
{
|
||||||
// TODO Auto-generated constructor stub
|
tile = tilecompressor;
|
||||||
|
this.player = player;
|
||||||
|
|
||||||
|
// input
|
||||||
|
this.addSlotToContainer(new Slot(tilecompressor.inventory, 0, 34, 16));
|
||||||
|
this.addSlotToContainer(new Slot(tilecompressor.inventory, 1, 34, 34));
|
||||||
|
// outputs
|
||||||
|
this.addSlotToContainer(new Slot(tilecompressor.inventory, 2, 86, 25));
|
||||||
|
this.addSlotToContainer(new Slot(tilecompressor.inventory, 3, 104, 25));
|
||||||
|
|
||||||
|
|
||||||
|
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
|
@Override
|
||||||
|
|
|
@ -11,7 +11,7 @@ public class TileImplosionCompressor extends TileMachineBase implements IWrencha
|
||||||
|
|
||||||
public int tickTime;
|
public int tickTime;
|
||||||
public BasicSink energy;
|
public BasicSink energy;
|
||||||
public Inventory inventory = new Inventory(5, "TileImplosionCompressor", 64);
|
public Inventory inventory = new Inventory(4, "TileImplosionCompressor", 64);
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Loading…
Add table
Reference in a new issue