kotlin
class KattonLevelBlockCollection( val level: Level )Map-like access to blocks in a level by position.
Properties
| Property | Description |
|---|---|
level | The Level containing the blocks |
KattonLevelBlockCollection.get
kotlin
operator fun get(blockPos: BlockPos): BlockGet the Block at a position.
KattonLevelBlockCollection.set
kotlin
operator fun set(blockPos: BlockPos, block: Block)Set a Block at a position using its default state.
KattonLevelBlockCollection.set
kotlin
operator fun set(start: BlockPos, end: BlockPos, block: Block)Fill a region with a Block using its default state.