pub struct ChunkSection {
pub block_count: i16,
pub fluid_count: i16,
pub blocks: PalettedContainer,
pub biomes: PalettedContainer,
}Expand description
One chunk section.
Fields§
§block_count: i16Blocks that are not air.
fluid_count: i16Blocks with a fluid.
blocks: PalettedContainerBlock states.
biomes: PalettedContainerBiomes.
Implementations§
Source§impl ChunkSection
impl ChunkSection
Sourcepub fn read(r: &mut Reader<'_>) -> DecodeResult<Self>
pub fn read(r: &mut Reader<'_>) -> DecodeResult<Self>
Reads one section.
Trait Implementations§
Source§impl Clone for ChunkSection
impl Clone for ChunkSection
Source§impl Debug for ChunkSection
impl Debug for ChunkSection
impl Eq for ChunkSection
Source§impl PartialEq for ChunkSection
impl PartialEq for ChunkSection
impl StructuralPartialEq for ChunkSection
Auto Trait Implementations§
impl !Freeze for ChunkSection
impl Forget for ChunkSection
impl Move for ChunkSection
impl RefUnwindSafe for ChunkSection
impl Send for ChunkSection
impl Sync for ChunkSection
impl Unpin for ChunkSection
impl UnsafeUnpin for ChunkSection
impl UnwindSafe for ChunkSection
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