Paper: Inventory#getName() is gone.

Created on 15 May 2019  路  4Comments  路  Source: PaperMC/Paper

I assume Bukkit, CB or Spigot might've removed it, can we get this method back?

wontfix

Most helpful comment

InventoryView#getTitle()

Remember, inventories don't have names. Never have.. it's the view that has the name.

All 4 comments

Although it's not recommended by any means to use that method, I think for plugin compat. until devs update their plugins, it should be added back.

But it will send a quite annoying message to the console on plugin load.

Although it's not recommended by any means to use that method

Please excuse my ignorance but what's the alternative?

InventoryView#getTitle()

Remember, inventories don't have names. Never have.. it's the view that has the name.

Thank you for the explanation, you learn something new every day.

Was this page helpful?
0 / 5 - 0 ratings