Package net.minecraft.client.gui.inventory

Examples of net.minecraft.client.gui.inventory.GuiInventory


      }
    }
   
    if (event.gui instanceof GuiPlayerExpanded) {
      if (event.button.id == 55) {
        event.gui.mc.displayGuiScreen(new GuiInventory(event.gui.mc.thePlayer));
        PacketHandler.INSTANCE.sendToServer(new PacketOpenNormalInventory(event.gui.mc.thePlayer));
      }
    }
  }
View Full Code Here


  private static Minecraft mc = FMLClientHandler.instance().getClient();

  public static void openInventoryGui()
  {
    TabRegistry.mc.thePlayer.sendQueue.addToSendQueue(new C0DPacketCloseWindow(mc.thePlayer.openContainer.windowId));
    GuiInventory inventory = new GuiInventory(TabRegistry.mc.thePlayer);
    TabRegistry.mc.displayGuiScreen(inventory);
  }
View Full Code Here

                break;
            case 23:
                if (packet.readBoolean())
                    ClientUtils.openSMPGui(packet.readUByte(), new GuiExtendedCreativeInv(new ContainerCreativeInv(mc.thePlayer, new ExtendedCreativeInv(null, Side.CLIENT))));
                else
                    mc.displayGuiScreen(new GuiInventory(mc.thePlayer));
                break;
            case 24:
                ClientUtils.openSMPGui(packet.readUByte(), new GuiPotionCreator(mc.thePlayer.inventory));
                break;
        }
View Full Code Here

    {
      mc.gameSettings.smoothCamera = !mc.gameSettings.smoothCamera;
    }
    if(i == mc.gameSettings.keyBindInventory.getKeyCode())
    {
      mc.displayGuiScreen(new GuiInventory(mc.thePlayer));
    }
    if(i == mc.gameSettings.keyBindDrop.getKeyCode())
    {
      //mc.thePlayer.dropCurrentItem();
    }
View Full Code Here

  @Override
  public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y,
      int z) {
    if (ID == ArmorProxyCommon.inventoryGui) {
      GuiInventory inventory = new GuiInventory(player);
      return inventory;
    }
    if (ID == ArmorProxyCommon.armorGuiID) {
      ArmorProxyClient.armorExtended.init(Minecraft.getMinecraft().thePlayer);
      return new ArmorExtendedGui(player.inventory, ArmorProxyClient.armorExtended);
View Full Code Here

    private static Minecraft mc = FMLClientHandler.instance().getClient();

    public static void openInventoryGui ()
    {
        mc.thePlayer.sendQueue.addToSendQueue(new C0DPacketCloseWindow(mc.thePlayer.openContainer.windowId));
        GuiInventory inventory = new GuiInventory(mc.thePlayer);
        mc.displayGuiScreen(inventory);
    }
View Full Code Here

TOP

Related Classes of net.minecraft.client.gui.inventory.GuiInventory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.