@Override public Object getClientGuiElement( int guiId, EntityPlayer player, World world, int x, int y, int z) { if (guiId == Reference.GUI_INDEX_KITCREATOR) { GuiKitCreator gui = new GuiKitCreator(player, new InventoryKitCreator(player.getHeldItem())); LogHelper.info("ClentGuiElement= " + gui); return gui; } else { return null; } }
@Override public Object getServerGuiElement( int guiId, EntityPlayer player, World world, int x, int y, int z) { if (guiId == Reference.GUI_INDEX_KITCREATOR) { ContainerKitCreator container = new ContainerKitCreator(player, new InventoryKitCreator(player.getHeldItem())); Reference.serverContainer = container; LogHelper.info("ServerGuiElement = " + container); return container; } else { return null; } }