gathering custom inventory items... pass it to method...

Discussion in 'Plugin Development' started by djdeath1, Jun 5, 2014.

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

    djdeath1

    What im trying to accomplish here is you click a block it will open a menu like a ChestGUI but you can place items inside and after you close it will pass all the contents to a method... any help would be grateful

    :: EDIT ::
    I have it to the point it opens the custom inventory i just need to figure out how to grab the contents of the inventory after the inventory is closed...
     
  2. Offline

    djdeath1

    any help please
     
  3. Offline

    monkeymanboy

    on InventoryCloseEvent check if the title of the inventory is the one that yours is and if it is then pass event.getInventory() to the method
     
  4. Offline

    xTigerRebornx

    djdeath1 Try using the InventoryCloseEvent, and add appropriate checks to determine if its your inventory
    Edit: ninja'd by le monkey
     
  5. Offline

    djdeath1

  6. Offline

    RawCode

    collection or array is valid argument for method
     
Thread Status:
Not open for further replies.

Share This Page