I'm writing a shop plugin, and I want to display an object's name given an ID and data. My current method (return new ItemStack(id).getType().name() isn't adequate for items with data. I plan to go through and just write a ton of if statements for each ID & data value, but before wasting my time, I wanna ask: has anyone already written a function to convert an id and data to a name? Or, if you could point me in the direction of an open source mod that does this, that would be great, too. I don't run a server, so I have no idea what mods do what.