Implement setType(Material, boolean) from Bukkit API