Package org.spoutcraft.client.packet

Examples of org.spoutcraft.client.packet.PacketSlotClick


  private void handleClickOnSlot(Slot slot, int button) {
    try {
      if (mc.thePlayer == null) {
        return;
      }
      PacketSlotClick packet = new PacketSlotClick(slot, button,Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT));
      SpoutClient.getInstance().getPacketManager().sendSpoutPacket(packet);
      ItemStack stackOnCursor = new ItemStack(0);
      if (mc.thePlayer.inventory.getItemStack() != null) {
        net.minecraft.src.ItemStack mcStack = mc.thePlayer.inventory.getItemStack();
        stackOnCursor = new ItemStack(mcStack.itemID, mcStack.stackSize, (short) mcStack.getItemDamage());
View Full Code Here

TOP

Related Classes of org.spoutcraft.client.packet.PacketSlotClick

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.