toNBT

fun toNBT(version: SupportedVersion = this.version): NBTCompound

Converts this ChunkColumn into its NBT representation. Not passing a SupportedVersion parameter will make the chunk write to its format version. It is NOT allowed to give a version lower than this chunk's, because new data cannot be converted back to old formats