Skip to content

Name -> Item #8

@Swedz

Description

@Swedz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions