[][src]Trait fastanvil::ChunkRender

pub trait ChunkRender {
    pub fn draw(&mut self, xc_rel: usize, zc_rel: usize, chunk: &mut Chunk<'_>);
pub fn draw_invalid(&mut self, xc_rel: usize, zc_rel: usize); }

ChunkRender objects can render a given chunk. What they render to is entirely up to the implementation.

Required methods

pub fn draw(&mut self, xc_rel: usize, zc_rel: usize, chunk: &mut Chunk<'_>)[src]

Draw the given chunk.

pub fn draw_invalid(&mut self, xc_rel: usize, zc_rel: usize)[src]

Draw the invalid chunk. This means that the chunk was not of an expected form and couldn't be deserialized into a chunk object.

Loading content...

Implementors

impl<'a, P: Palette + ?Sized> ChunkRender for RegionBlockDrawer<'a, P>[src]

Loading content...