Is there a way, surely there must be, to get the readable name of an ItemStack?
The default name, not the display name.
Using getTranslation().get() works for most items, but not all. For example, heads still come out as item.skull.name
And all wool is just “Wool”. I was hoping to get the name that displays when you hold the item.
Also, the same for enchantments. How do I get “Silk Touch” instead of enchantment.untouching?
@ryantheleach Thanks, that did help.
It’s not exactly what I wanted but it’s good enough.
Although, is it possible to get exactly what is shown to the client when holding the item?
Example: “Spawn Creeper” shows in the game but the Translation is simply “Spawn”
And with heads, the Translation is “Head” but in the game it will show as “Psp’s Head” for my head.
And what about enchantments? Trying to get the Translation from an enchantment throws AbstractMethodError.