pub struct RegionBuffer<S: Seek + Read> { /* fields omitted */ }
Expand description
A Minecraft Region. Allows access to chunk data, handling decompression.
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).
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.