Struct hematite_server::types::Chunk [] [src]

pub struct Chunk {
    pub blocks: [u16; 4096],
    pub block_light: [u8; 2048],
    pub sky_light: Option<[u8; 2048]>,
}

Chunk is a group of 16x16x16 blocks.

block_light, sky_light are nibble arrays (4bit values)

Fields

blocks
block_light
sky_light

Methods

impl Chunk

fn len(&self) -> usize

fn new(block: u16, light: u8) -> Chunk

Trait Implementations

impl Default for Chunk

fn default() -> Chunk

impl Debug for Chunk

fn fmt(&self, f: &mut Formatter) -> Result