Skip to main content

variant_hash

Function variant_hash 

Source
pub fn variant_hash(seed: u32, layer: i32, x: i64, y: i64) -> u64
Expand description

The hash that picks a tile’s variant (docs/spec/FORMAT.md section 13): the transition’s seed and the tile’s layer and plane coordinates, mixed in that order, so the same world always picks the same variants.