Struct base::world::FallbackProvider
[−]
[src]
pub struct FallbackProvider<P, F> { // some fields omitted }
A fallback provider that holds two chunk providers with one being primary and one fallback. If the chunk load from the primary fails the fallback is being called.
Trait Implementations
impl<P: Copy, F: Copy> Copy for FallbackProvider<P, F>
[src]
impl<P: Debug, F: Debug> Debug for FallbackProvider<P, F>
[src]
impl<P: Clone, F: Clone> Clone for FallbackProvider<P, F>
[src]
fn clone(&self) -> FallbackProvider<P, F>
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<P: ChunkProvider, F: ChunkProvider> ChunkProvider for FallbackProvider<P, F>
[src]
fn load_chunk(&self, pos: 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, pos: 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.