Package net.minecraft.src

Examples of net.minecraft.src.Packet101CloseWindow


      int window = Minecraft.getMinecraft().thePlayer.openContainer.windowId;
      ItemStack replacement = inventory.mainInventory[slot].copy();

      Minecraft.getMinecraft().playerController.windowClick(window, slot < 9 ? slot + 36 : slot, 0, 0, Minecraft.getMinecraft().thePlayer);
      Minecraft.getMinecraft().playerController.windowClick(window, inventory.currentItem + 36, 0, 0, Minecraft.getMinecraft().thePlayer);
      ((EntityClientPlayerMP)Minecraft.getMinecraft().thePlayer).sendQueue.addToSendQueue(new Packet101CloseWindow(window));
      ((EntityClientPlayerMP)Minecraft.getMinecraft().thePlayer).sendQueue.queued = true;
      ((EntityClientPlayerMP)Minecraft.getMinecraft().thePlayer).sendQueue.packetQueueTime = System.currentTimeMillis() + 30L;

      ItemStack current = inventory.mainInventory[inventory.currentItem];
      if (replacement != null && current != null) {
View Full Code Here

TOP

Related Classes of net.minecraft.src.Packet101CloseWindow

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.