pub fn fill_chunk_section(
        &mut self,
        chunk_pos: ChunkPosition,
        section_y: usize,
        block: BlockId,
    ) -> bool {
        let mut chunk = match self.world.chunk_map().chunk_at_mut(chunk_pos) {
            Some(chunk) => chunk,
            None => return false,
        };

        let was_successful = chunk.fill_section(section_y + 1, block);

        if !was_successful {
            return false;
        }

        self.ecs.insert_event(BlockChangeEvent::fill_chunk_section(
            chunk_pos,
            section_y as u32,
        ));

        true
    }
/// Fills the given chunk section (16x16x16 blocks).
///
/// All blocks in the chunk section are overwritten with `block`.
Fills the given chunk section (16x16x16 blocks).
All blocks in the chunk section are overwritten with `block`.
Fills the given chunk section ( 16x16x16 blocks ) . All blocks in the chunk section are overwritten with ` block ` .
pub fn fill_chunk_section(
        &mut self,
        chunk_pos: ChunkPosition,
        section_y: usize,
        block: BlockId,
    ) -> bool {
        let mut chunk = match self.world.chunk_map().chunk_at_mut(chunk_pos) {
            Some(chunk) => chunk,
            None => return false,
        };
        let was_successful = chunk.fill_section(section_y + 1, block);
        if !was_successful {
            return false;
        }
        self.ecs.insert_event(BlockChangeEvent::fill_chunk_section(
            chunk_pos,
            section_y as u32,
        ));
        true
    }
pub fn fill_chunk_section ( & mut self , chunk_pos : ChunkPosition , section_y : usize , block : BlockId , ) -> bool { let mut chunk = match self . world . chunk_map ( ) . chunk_at_mut ( chunk_pos ) { Some ( chunk ) => chunk , None => return false , } ; let was_successful = chunk . fill_section ( section_y + 1 , block ) ; if ! was_successful { return false ; } self . ecs . insert_event ( BlockChangeEvent :: fill_chunk_section ( chunk_pos , section_y as u32 , ) ) ; true }
Fills the given chunk section (16x16x16 blocks).
Fills the given chunk section ( 16x16x16 blocks ) .
&mut self
chunk_pos
ChunkPosition
section_y
usize
block
BlockId
&mut self
chunk_pos
ChunkPosition
section_y
usize
block
BlockId