Getting the new form of IDs from a material

Discussion in 'Plugin Development' started by unon1100, Mar 30, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    unon1100

    Is there any way that I can input a material and get back a string containing the new form of IDs?

    ie: API.getNewID(Material.STONE) returns "minecraft:stone"

    I've been looking around quite a bit trying to find one, but I can't find it.
     
  2. Offline

    Nici900800

    if(ITEM.getType() == Materiel.Stone)
     
  3. Offline

    unon1100

    Nici900800 No. I was wondering if there is an already existing API/Resource to use so that I could get the new version of Minecraft IDs. I don't want to make one of my own, since it will take hours of my day away, but if there isn't one, I might as well.
     
  4. Offline

    Gater12

  5. Offline

    unon1100

    Gater12 Close, but not quite...

    Something like leatherLeggings wouldn't work, since the enum value is LEATHER_LEGGINGS, and there is no special character in leatherLeggings.
     
  6. Offline

    xTigerRebornx

    unon1100 You could hook into the already extensive database Essentials has, as they have an extremely large way of looking up items
     
Thread Status:
Not open for further replies.

Share This Page