/// Retrieves the block at the given position in this chunk section.
/// The position is local to this section.
Retrieves the block at the given position in this chunk section.
The position is local to this section.
Retrieves the block at the given position in this chunk section . The position is local to this section .
pub fn block_at(&self, x: usize, y: usize, z: usize) -> Block {
        let index = block_index(x, y, z);
        let block_id = self.data.get(index);
        let global_id = match &self.palette {
            Some(palette) => palette[block_id as usize] as u16,
            None => block_id as u16,
        };
        Block::from_native_state_id(global_id).unwrap()
    }
pub fn block_at ( & self , x : usize , y : usize , z : usize ) -> Block { let index = block_index ( x , y , z ) ; let block_id = self . data . get ( index ) ; let global_id = match & self . palette { Some ( palette ) => palette [ block_id as usize ] as u16 , None => block_id as u16 , } ; Block :: from_native_state_id ( global_id ) . unwrap ( ) }
Retrieves the block at the given position in this chunk section.
Retrieves the block at the given position in this chunk section .
&self
x
usize
y
usize
z
usize