Struct base::world::NullProvider
[−]
[src]
pub struct NullProvider;
A dummy provider that always fails to provide a chunk.
Trait Implementations
impl Debug for NullProvider
[src]
impl Copy for NullProvider
[src]
impl Clone for NullProvider
[src]
fn clone(&self) -> NullProvider
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl ChunkProvider for NullProvider
[src]
fn load_chunk(&self, _: ChunkIndex) -> Option<Chunk>
Attempt to load a chunk from the world. This may fail (e.g. when loading from a file and the chunk is not yet saved in the file). Read more
fn is_chunk_loadable(&self, _: ChunkIndex) -> bool
Determines whether or not the chunk at the given position can be loaded. This function is expected to return quickly. Read more
fn get_plant_list(&self) -> Vec<Plant>
Returns a Vector of all specific plants to be rendered in the world.