示例#1
0
func (c *Chunk) SetBlock(oc coords.Offset, newBlock Block) {
	c.blocks[oc.Index()] = newBlock
}
示例#2
0
func (c *Chunk) Block(oc coords.Offset) Block {
	return c.blocks[oc.Index()]
}