Getting the damage of an ItemStack?

Discussion in 'Plugin Development' started by Koanga, Mar 20, 2011.

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

    Koanga

    As of right now, I have tried multiple things (getDurability() and ItemStack.getData().getData()) to attempt to retrieve the damage of an ItemStack for TradeMod. Sadly, these methods do not work.
    Does anyone know any other way besides using the normal classes?
     
  2. Offline

    Edward Hand

    Really? getDurability() should work. What's wrong with it?
     
  3. Offline

    DiddiZ

    getData() should return the data of a block or item, like wool color or orientation.
    getDurability() should be the method you atr searching for.
     
Thread Status:
Not open for further replies.

Share This Page