Added reflection to get item/block class when using bukkit