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


    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


    any help please
  3. Offline


    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


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


  6. Offline


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

Share This Page