]> git.lizzy.rs Git - minetest.git/blobdiff - src/script/lua_api/l_mapgen.h
Biome API: Add 'get_biome_name(biome_id)' API
[minetest.git] / src / script / lua_api / l_mapgen.h
index aebbcbac6c13e064dcaea048d55b1bbdee325bc4..1339791f389e75286d0ceb9d41e0c91816f6171f 100644 (file)
@@ -28,6 +28,10 @@ class ModApiMapgen : public ModApiBase
        // returns the biome id as used in biomemap and returned by 'get_biome_data()'
        static int l_get_biome_id(lua_State *L);
 
+       // get_biome_name(biome_id)
+       // returns the biome name string
+       static int l_get_biome_name(lua_State *L);
+
        // get_heat(pos)
        // returns the heat at the position
        static int l_get_heat(lua_State *L);