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)) { }
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.