getDoubleOrNull

fun CompoundTag.getDoubleOrNull(key: String): Double?