World.opIndexAssign

Sets the same block in a rectangualar area. This method is optimised for building as it uses a cached pointer instead of getting it every time and it doesn't call any block update.

Examples

// sets a chunk to stone
world[0..16, 0..$, 0..16] = Blocks.stone;

// sets an area to air
world[0..16, 64..128, 0..16] = Blocks.air;

// sets a 1-block-high layer only
world[0..16, 64, 0..16] = Blocks.beetroot0;

Meta