Trait BiomeColorResolver
pub trait BiomeColorResolver:
Send
+ Sync
+ 'static {
// Required method
fn color(&self, biome: &str, info: &ResolverBiome, x: f64, z: f64) -> u32;
}Expand description
A mod’s colour resolver: vanilla’s ColorResolver, which the game blends over the biomes
around a block as it blends its own (ClientLevel.calculateBlockTint, over the biome blend
radius) and caches per section while it meshes. Held by the game and asked on the meshing
workers, so it keeps no mutable state and gets no Host.
Required Methods§
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".