summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/Classes
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-11 08:30:01 +0100
committermadmaxoft <github@xoft.cz>2014-03-11 08:31:27 +0100
commit04dcd850d6c5609bd5ecea2c60b0be0148571d61 (patch)
tree0d862ee99043da0ae32b76acc3c1179984e3b857 /MCServer/Plugins/APIDump/Classes
parentMerge pull request #786 from mc-server/cBlockArea_Offset (diff)
downloadcuberite-04dcd850d6c5609bd5ecea2c60b0be0148571d61.tar
cuberite-04dcd850d6c5609bd5ecea2c60b0be0148571d61.tar.gz
cuberite-04dcd850d6c5609bd5ecea2c60b0be0148571d61.tar.bz2
cuberite-04dcd850d6c5609bd5ecea2c60b0be0148571d61.tar.lz
cuberite-04dcd850d6c5609bd5ecea2c60b0be0148571d61.tar.xz
cuberite-04dcd850d6c5609bd5ecea2c60b0be0148571d61.tar.zst
cuberite-04dcd850d6c5609bd5ecea2c60b0be0148571d61.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/Classes')
-rw-r--r--MCServer/Plugins/APIDump/Classes/Geometry.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/Classes/Geometry.lua b/MCServer/Plugins/APIDump/Classes/Geometry.lua
index e83d6e4b1..6f95c4cbf 100644
--- a/MCServer/Plugins/APIDump/Classes/Geometry.lua
+++ b/MCServer/Plugins/APIDump/Classes/Geometry.lua
@@ -76,6 +76,7 @@ return
DifY = { Params = "", Return = "number", Notes = "Returns the difference between the two Y coords (Y-size minus 1). Assumes sorted." },
DifZ = { Params = "", Return = "number", Notes = "Returns the difference between the two Z coords (Z-size minus 1). Assumes sorted." },
DoesIntersect = { Params = "OtherCuboid", Return = "bool", Notes = "Returns true if this cuboid has at least one voxel in common with OtherCuboid. Note that edges are considered inclusive. Assumes both sorted." },
+ Engulf = { Params = "{{Vector3i|Point}}", Return = "", Notes = "If needed, expands the cuboid to include the specified point. Doesn't shrink. Assumes sorted. " },
Expand = { Params = "SubMinX, AddMaxX, SubMinY, AddMaxY, SubMinZ, AddMaxZ", Return = "", Notes = "Expands the cuboid by the specified amount in each direction. Works on unsorted cuboids as well. NOTE: this function doesn't check for underflows." },
GetVolume = { Params = "", Return = "number", Notes = "Returns the volume of the cuboid, in blocks. Note that the volume considers both coords inclusive. Works on unsorted cuboids, too." },
IsCompletelyInside = { Params = "OuterCuboid", Return = "bool", Notes = "Returns true if this cuboid is completely inside (in all directions) in OuterCuboid. Assumes both sorted." },
@@ -308,6 +309,7 @@ end
},
Equals = { Params = "Vector3i", Return = "bool", Notes = "Returns true if this vector is exactly the same as the specified vector." },
Length = { Params = "", Return = "number", Notes = "Returns the (euclidean) length of this vector." },
+ Move = { Params = "X, Y, Z", Return = "", Notes = "Moves the vector by the specified amount in each axis direction." },
Set = { Params = "x, y, z", Return = "", Notes = "Sets all the coords of the vector at once" },
SqrLength = { Params = "", Return = "number", Notes = "Returns the (euclidean) length of this vector, squared. This operation is slightly less computationally expensive than Length(), while it conserves some properties of Length(), such as comparison." },
},