You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have a situation where I need to take the name of an item, and convert it back to an item. I don't care for the item count or anything, just the data value and the material. Like a situation where I would type White Wool and it would give me new ItemStack(Material.WOOL, 1, (byte)0). I was imagining I could just do a loop through Material.values(), but that wouldn't give me the different colored wools, or types of logs, etc.
The text was updated successfully, but these errors were encountered:
So I have a situation where I need to take the name of an item, and convert it back to an item. I don't care for the item count or anything, just the data value and the material. Like a situation where I would type
White Wool
and it would give menew ItemStack(Material.WOOL, 1, (byte)0)
. I was imagining I could just do a loop throughMaterial.values()
, but that wouldn't give me the different colored wools, or types of logs, etc.The text was updated successfully, but these errors were encountered: