package chbachman.armour.gui.tablet;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.Slot;
public class TabletContainer extends Container {
public TabletContainer(EntityPlayer player) {
this.bindPlayerInventory(player.inventory);
}
protected void bindPlayerInventory(InventoryPlayer inventoryPlayer) {
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 9; j++) {
this.addSlotToContainer(new Slot(inventoryPlayer, j + i * 9 + 9, 10, 10));
}
}
for (int i = 0; i < 9; i++) {
this.addSlotToContainer(new Slot(inventoryPlayer, i, 10, 10));
}
}
@Override
public boolean canInteractWith(EntityPlayer player) {
return true;
}
}