Struct fastanvil::RegionBuffer[][src]

pub struct RegionBuffer<S: Seek + Read> { /* fields omitted */ }
Expand description

A Minecraft Region. Allows access to chunk data, handling decompression.

Implementations

Return the (region-relative) Chunk location (x, z)

Return the raw, uncompressed NBT data for a chunk at the (region-relative) Chunk location (x, z). Region’s hold 32 by 32 chunks.

Can be further processed with stream::Parser or even with Blob::from_reader() of hematite_nbt.

Call function with each uncompressed, non-empty chunk, calls f(x, z, data).

Trait Implementations

Load the chunk at the given chunk coordinates, ie 0..32 for x and z. Implmentations do not need to be concerned with caching chunks they have loaded, this will be handled by the types using the region. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.