kotlin
class KattonLevelBlockCollection( val level: Level )Map-like access to blocks in a level by position.
以类似 Map 的方式按位置访问关卡中的方块。
属性
| 属性 | 说明 |
|---|---|
level | The Level containing the blocks |
KattonLevelBlockCollection.get
kotlin
operator fun get(blockPos: BlockPos): Block获取方块 at a 位置。
KattonLevelBlockCollection.set
kotlin
operator fun set(blockPos: BlockPos, block: Block)使用默认状态在指定位置设置方块。
KattonLevelBlockCollection.set
kotlin
operator fun set(start: BlockPos, end: BlockPos, block: Block)使用方块的默认状态填充一个区域。
