add SetBlock function

This commit is contained in:
Tnze
2020-05-19 14:15:44 +08:00
parent fa75535f37
commit 32527442ed
2 changed files with 41 additions and 17 deletions

View File

@ -18,6 +18,7 @@ type Chunk struct {
// Section store a 16*16*16 cube blocks
type Section interface {
GetBlock(x, y, z int) BlockStatus
SetBlock(x, y, z int, s BlockStatus)
}
type BlockStatus uint32