Struct mca_parser::nbt::HeightMaps
source · pub struct HeightMaps {
pub motion_blocking: HeightMap,
pub motion_blocking_no_leaves: HeightMap,
pub ocean_floor: HeightMap,
pub ocean_floor_wg: Option<HeightMap>,
pub world_surface: 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: HeightMapStores 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: HeightMapStores 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: HeightMapStores 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: HeightMapStores 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 moresource§impl Debug for HeightMaps
impl Debug for HeightMaps
source§impl<'de> Deserialize<'de> for HeightMaps
impl<'de> Deserialize<'de> for HeightMaps
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for HeightMaps
impl PartialEq for HeightMaps
source§fn eq(&self, other: &HeightMaps) -> bool
fn eq(&self, other: &HeightMaps) -> bool
self and other values to be equal, and is used
by ==.