Solved Inventory Renaming?

Discussion in 'Spigot Plugin Development' started by Azmidium, Dec 23, 2015.

  1. Is there a way I can take the current open inventory, and rename it to something else? I can't give code examples since I don't exactly know if renaming an inventory is possible.
     
  2. Create a new inventory with the same content in it, then you can define your name. I think that's the only way to do it.
     
  3. Kk, I was going to do that, I was just wondering if it was possible. I might wait for more responses, then I will set this thread as solved. :)
     
  4. Current open inventory?
    I don't think it's possible to change any properties of an inventory while it is open.
    I might have read from somewhere that the properties of an inventory are immutable, other than the items inside.
    Your best option is to create and open a new inventory with the same items in it.
     
  5. Thanks for clarifying!
     
  6. I dont think its possibe
     
  7. It's not possible. I had a look at the API and a function to rename the inventory isn't there.