.getData()

Discussion in 'Plugin Development' started by Elimnator, Dec 7, 2013.

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

    Elimnator

    Is something wrong with .getData() ?

    When I use it eclipse crosses it out and I get warnings, is there a better/new way now?

    Code:
    if ((block.getType().equals(Material.WOOD)) && (block.getData() == (byte)12)) {
    }
     
  2. Offline

    Wolfey

    Yea it is an old method, although I can't seem to find a newer method of it. Try looking in the javadocs and see what you can find. If there's nothing, try and suppress the warning to deprecated.
     
  3. Offline

    Elimnator

    Anyone know if it needs to be changed?
     
Thread Status:
Not open for further replies.

Share This Page