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?