How can I get an item name given an id number? I've looked through the APIs but can't seem to find it. Right now I have a plugin that lists items like ID: 3 - Amount: 64 But I would like it to be more like Dirt - ID: 3 - Amount: 64 Can't seem to figure it out but I feel like its probably right in front of my nose
This was posted about 500 times the last couple of days. Last time: http://forums.bukkit.org/threads/get-item-name-from-id.27060/
getId() returns an int though, but I figured it out anyways. Thanks I guess. Code: Material.getMaterial(itemDataValue).toString();