Trait fastanvil::Chunk[][src]

pub trait Chunk {
    fn status(&self) -> String;
fn surface_height(&self, x: usize, z: usize, mode: HeightMode) -> isize;
fn biome(&self, x: usize, y: isize, z: usize) -> Option<Biome>;
fn block(&self, x: usize, y: isize, z: usize) -> Option<&Block>; }

Required methods

Get the height of the first air-like block above something not air-like. Will panic if given x/z coordinates outside of 0..16.

Get the biome of the given coordinate. A biome may not exist if the section of the chunk accessed is not present. For example, trying to access the block at height 1234 would return None.

Get the block at the given coordinates. A block may not exist if the section of the chunk accessed is not present. For example, trying to access the block at height 1234 would return None.

Implementors