From 6027c8d25920fea23a306dba02162174721250e0 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Tue, 9 Jul 2013 16:26:52 +0200 Subject: Add VoxelArea:position, VoxelArea:iter and VoxelArea:iterp --- doc/lua_api.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/lua_api.txt') 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 --------------- -- cgit v1.2.3