Search in sources :

Example 1 with GuiInventoryPanel

use of crazypants.enderio.machine.invpanel.GuiInventoryPanel in project EnderIO by SleepyTrousers.

the class ClientRemoteGuiManager method getClientGuiElement.

@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
    TileInventoryPanel te;
    if (targetTE != null && targetTEtime >= EnderIO.proxy.getTickCount()) {
        te = targetTE;
        targetTE = null;
    } else {
        te = new TileInventoryPanel();
    }
    return new GuiInventoryPanel(te, new InventoryPanelContainer(player.inventory, te));
}
Also used : TileInventoryPanel(crazypants.enderio.machine.invpanel.TileInventoryPanel) InventoryPanelContainer(crazypants.enderio.machine.invpanel.InventoryPanelContainer) GuiInventoryPanel(crazypants.enderio.machine.invpanel.GuiInventoryPanel)

Aggregations

GuiInventoryPanel (crazypants.enderio.machine.invpanel.GuiInventoryPanel)1 InventoryPanelContainer (crazypants.enderio.machine.invpanel.InventoryPanelContainer)1 TileInventoryPanel (crazypants.enderio.machine.invpanel.TileInventoryPanel)1