summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcmap/chunk.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcmap/chunk.go b/mcmap/chunk.go
index c504ae5..0ba12f8 100644
--- a/mcmap/chunk.go
+++ b/mcmap/chunk.go
@@ -84,4 +84,10 @@ func (c *Chunk) Height(x, z int) int {
return int(c.heightMap[z*16+x])
}
+// Biome gets the Biome at x,z.
+func (c *Chunk) Biome(x, z int) Biome { return c.biomes[x*16+z] }
+
+// SetBiome sets the biome at x,z.
+func (c *Chunk) SetBiome(x, z int, bio Biome) { c.biomes[x*16+z] = bio }
+
// TODO: func (c *Chunk) RecalcHeightMap()