Struct mc_core::world::chunk::SubChunk[][src]

pub struct SubChunk { /* fields omitted */ }
Expand description

A sub chunk, 16x16x16 blocks.

Implementations

Construct a new sub chunk with the given level environment. The default block is the “null-block” which is the block with save ID 0 in the global blocks palette (which is air in vanilla global palette).

Caution

This method will not update heightmaps of the owner chunk.

Force fill all the sub chunk with the given block state.

Safety:

You must ensure that the given palette contains only valid states for this chunk’s level’s environment.

The blocks iterator must return only valid indices for the given palette.

Iterate over all blocks in this chunk, ordered by X, Z then Y.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.