Packet100OpenWindow

Discussion in 'Plugin Development' started by emericask8ur, Jan 16, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    emericask8ur

    Packet100OpenWindow for some reason when opening a custom inventory, doesnt allow you to edit the contents in it. Same goes for the bukkit code
    Code:
    Inventory inventory = Bukkit.createInventory(player, 0, cmdLabel);
    
    &

    Code:
    Packet100OpenWindow packet100 = new net.minecraft.server.v1_4_6.Packet100OpenWindow();
    packet100.c = customTitle;
    p.getHandle().playerConnection.sendPacket(packet100);
    
    How can I allow the user to edit the items/contents of his/her inventory while opening this custom inventory?
     
  2. Offline

    fireblast709

    player.openInventory(inventory)?
     
  3. Offline

    emericask8ur

    Yeah I got that.
     
  4. Offline

    fireblast709

  5. Offline

    emericask8ur

    You can add more complexion to it.
     
  6. Offline

    chasechocolate

  7. Offline

    gomeow

    What do you get out of complexion? More complex code is not always better
     
  8. Offline

    emericask8ur

    No I mean I can add more to it.
     
  9. Offline

    Jacek

    emericask8ur likes this.
  10. Offline

    nisovin

    You should probably use an inventory size greater than 0. There's also no reason to use packets for this, the API works just fine.
     
  11. Offline

    fireblast709

    nonetheless must the number of slots be a multiple of 9
     
Thread Status:
Not open for further replies.

Share This Page