TechReborn/src/main/java/techreborn/client/container/ContainerChunkloader.java

41 lines
803 B
Java
Raw Normal View History

2015-04-28 22:09:38 +02:00
package techreborn.client.container;
import net.minecraft.entity.player.EntityPlayer;
2015-04-28 22:41:10 +02:00
import net.minecraft.inventory.Slot;
2015-11-08 13:15:45 +01:00
import reborncore.common.container.RebornContainer;
import techreborn.tiles.TileChunkLoader;
2015-04-28 22:09:38 +02:00
2016-03-24 01:39:26 +01:00
public class ContainerChunkloader extends RebornContainer
{
2016-03-24 01:39:26 +01:00
EntityPlayer player;
2016-03-24 01:39:26 +01:00
public ContainerChunkloader(TileChunkLoader tilechunkloader, EntityPlayer player)
{
this.player = player;
2016-03-24 01:39:26 +01:00
int i;
2016-03-24 01:39:26 +01:00
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));
}
}
2016-03-24 01:39:26 +01:00
for (i = 0; i < 9; ++i)
{
this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18, 142));
}
2016-03-24 01:39:26 +01:00
}
2016-03-24 01:39:26 +01:00
@Override
public boolean canInteractWith(EntityPlayer p_75145_1_)
{
return true;
}
2015-04-28 22:09:38 +02:00
}