Getting ItemStack[] back out of config

Discussion in 'Plugin Development' started by Mike724, Sep 23, 2012.

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

    Mike724

    How would I be able to get an ItemStack array back out of configuration? I do not see "getItemStackList" but I do see "getItemStack" for the config.
     
  2. Offline

    Comphenix

    You could get a list and see if it contains item stacks.
     
  3. Offline

    zeeveener

    Or to expand, you could save it as a list and call it in as a list then convert it to an array using (list).toArray(new ItemStack[0])
     
  4. Offline

    Mike724

    What about hashmaps? I'm not sure what would work best, I need to store inventories into a file, and get them back.
     
Thread Status:
Not open for further replies.

Share This Page