How can I possibly get material.getData() into a usable state?

Discussion in 'Plugin Development' started by epicfacecreeper, Dec 17, 2013.

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

    epicfacecreeper

    I'm trying to differentiate between different types of saplings, and I happened upon the Tree class in org.bukkit.material. (Javadoc link) To get the data associated with a block, I tried block.getType().getData(). This returns a CLASS. How am I supposed to get a usable <? extends MaterialData> object out of this?
     
Thread Status:
Not open for further replies.

Share This Page