pub struct HeightMaps {
pub motion_blocking: Option<HeightMap>,
pub motion_blocking_no_leaves: Option<HeightMap>,
pub ocean_floor: Option<HeightMap>,
pub ocean_floor_wg: Option<HeightMap>,
pub world_surface: Option<HeightMap>,
pub world_surface_wg: Option<HeightMap>,
}
Expand description
Several different heightmaps corresponding to 256 values compacted at 9 bits per value (lowest being 0, highest being 384, both values inclusive).
Fields§
§motion_blocking: Option<HeightMap>
Stores the Y-level of the highest block whose material blocks motion (i.e. has a collision box) or blocks that contains a fluid (water, lava, or waterlogging blocks).
motion_blocking_no_leaves: Option<HeightMap>
Stores the Y-level of the highest block whose material blocks motion (i.e. has a collision box), or blocks that contains a fluid (water, lava, or waterlogging blocks), except various leaves. Used only on the server side.
ocean_floor: Option<HeightMap>
Stores the Y-level of the highest block whose material blocks motion (i.e. has a collision box). One exception is carpets, which are considered to not have a collision box to heightmaps. Used only on the server side.
ocean_floor_wg: Option<HeightMap>
Stores the Y-level of the highest block whose material blocks motion (i.e. has a collision box). Used only during world generation, and automatically deleted after carvers are generated.
world_surface: Option<HeightMap>
Stores the Y-level of the highest non-air (all types of air) block.
world_surface_wg: Option<HeightMap>
Stores the Y-level of the highest non-air (all types of air) block. Used only during world generation, and automatically deleted after carvers are generated.
Trait Implementations§
Source§impl Clone for HeightMaps
impl Clone for HeightMaps
Source§fn clone(&self) -> HeightMaps
fn clone(&self) -> HeightMaps
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more