pub struct MapBlock {
pub is_underground: bool,
pub day_night_diff: bool,
pub generated: bool,
pub lighting_complete: Option<u16>,
pub nodes: MapNodesBulk,
pub node_metadata: NodeMetadataList,
}
Fields§
§is_underground: bool
§day_night_diff: bool
§generated: bool
§lighting_complete: Option<u16>
§nodes: MapNodesBulk
§node_metadata: NodeMetadataList
Trait Implementations§
Source§impl Deserialize for MapBlock
impl Deserialize for MapBlock
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
Source§impl Serialize for MapBlock
impl Serialize for MapBlock
Source§type Input = MapBlock
type Input = MapBlock
MapBlock is a bit of a nightmare, because the compression algorithm and where the compression is applied (to the whole struct, or to parts of it) depends on the serialization format version.
For now, only ser_fmt >= 28 is supported. For ver 28, only the nodes and nodemeta are compressed using zlib. For >= 29, the entire thing is compressed using zstd.
fn serialize<S: Serializer>(value: &Self::Input, ser: &mut S) -> SerializeResult
impl StructuralPartialEq for MapBlock
Auto Trait Implementations§
impl Freeze for MapBlock
impl RefUnwindSafe for MapBlock
impl Send for MapBlock
impl Sync for MapBlock
impl Unpin for MapBlock
impl UnwindSafe for MapBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more