Use NbtRegion.Ref for serialized regions
mainAn NbtRegion.Ref is a lightweight version of an NbtRegion created via NbtRegion.fromJson(). It is used when the region data is serialized to JSON to avoid including heavy raw chunk data in the payload.
Key differences from NbtRegion:
- It works with
NbtChunk.Refinstead ofNbtChunk. - It does not have
write()ortoJson()methods. - It requires a
chunkResolverto asynchronously load chunk data when accessed.