Skip to main content

SurfaceBiomeProvider

Trait SurfaceBiomeProvider 

Source
pub trait SurfaceBiomeProvider {
    // Required method
    fn biome_id(&mut self, block_y: i32) -> u16;
}
Expand description

Supplies vanilla-fuzzed biome IDs to generated surface rules on demand.

Required Methods§

Source

fn biome_id(&mut self, block_y: i32) -> u16

Returns the biome ID for the given block Y in the current X/Z column.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§