diff options
author | Kahrl <kahrl@gmx.net> | 2013-07-09 16:26:52 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-07-11 22:57:26 +0200 |
commit | 6027c8d25920fea23a306dba02162174721250e0 (patch) | |
tree | 7de32a539d81aa25a1601c4661b793023e2bb8f5 /doc | |
parent | 52beafff5310ae9fd0078af38ac2bb9142ac2cfb (diff) | |
download | minetest-6027c8d25920fea23a306dba02162174721250e0.tar.gz minetest-6027c8d25920fea23a306dba02162174721250e0.tar.bz2 minetest-6027c8d25920fea23a306dba02162174721250e0.zip |
Add VoxelArea:position, VoxelArea:iter and VoxelArea:iterp
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 12892e5b5..74b3d3ba5 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1676,6 +1676,13 @@ methods: - index(x, y, z): returns the index of an absolute position in a flat array starting at 1 ^ useful for things like VoxelManip, raw Schematic specifiers, PerlinNoiseMap:get2d/3dMap, and so on - indexp(p): same as above, except takes a vector +- position(i): returns the absolute position vector corresponding to index i +- contains(x, y, z): check if (x,y,z) is inside area formed by MinEdge and MaxEdge +- containsp(p): same as above, except takes a vector +- containsi(i): same as above, except takes an index +- iter(minx, miny, minz, maxx, maxy, maxz): returns an iterator that returns indices + ^ from (minx,miny,minz) to (maxx,maxy,maxz) in the order of [z [y [x]]] +- iterp(minp, maxp): same as above, except takes a vector Mapgen objects --------------- |