diff options
author | Mattes D <github@xoft.cz> | 2019-09-29 14:59:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-29 14:59:24 +0200 |
commit | 365cbc6e1cea96741e26c9ce912b003f8fd2c62c (patch) | |
tree | f23682c47928597791c53f3a300b03494ffde417 /Server/Plugins/APIDump/Classes | |
parent | Cactus can now grow and will be dropped if there is no place to grow. (diff) | |
download | cuberite-365cbc6e1cea96741e26c9ce912b003f8fd2c62c.tar cuberite-365cbc6e1cea96741e26c9ce912b003f8fd2c62c.tar.gz cuberite-365cbc6e1cea96741e26c9ce912b003f8fd2c62c.tar.bz2 cuberite-365cbc6e1cea96741e26c9ce912b003f8fd2c62c.tar.lz cuberite-365cbc6e1cea96741e26c9ce912b003f8fd2c62c.tar.xz cuberite-365cbc6e1cea96741e26c9ce912b003f8fd2c62c.tar.zst cuberite-365cbc6e1cea96741e26c9ce912b003f8fd2c62c.zip |
Diffstat (limited to 'Server/Plugins/APIDump/Classes')
-rw-r--r-- | Server/Plugins/APIDump/Classes/BlockEntities.lua | 10 | ||||
-rw-r--r-- | Server/Plugins/APIDump/Classes/Geometry.lua | 216 |
2 files changed, 226 insertions, 0 deletions
diff --git a/Server/Plugins/APIDump/Classes/BlockEntities.lua b/Server/Plugins/APIDump/Classes/BlockEntities.lua index bcdba0d0f..f4486c6d3 100644 --- a/Server/Plugins/APIDump/Classes/BlockEntities.lua +++ b/Server/Plugins/APIDump/Classes/BlockEntities.lua @@ -275,6 +275,16 @@ return }, Notes = "Returns the block Z-coord of the block entity's block", }, + GetRelPos = + { + Returns = + { + { + Type = "Vector3i", + }, + }, + Notes = "Returns the relative coords of the block entity's block within its chunk", + }, GetRelX = { Returns = diff --git a/Server/Plugins/APIDump/Classes/Geometry.lua b/Server/Plugins/APIDump/Classes/Geometry.lua index def786685..aa70f4c67 100644 --- a/Server/Plugins/APIDump/Classes/Geometry.lua +++ b/Server/Plugins/APIDump/Classes/Geometry.lua @@ -1150,6 +1150,78 @@ end { Notes = "<b>OBSOLETE</b>, use Abs() instead.", }, + addedX = + { + Params = + { + { + Name = "ofs", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3d", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offset on the X axis", + }, + addedXZ = + { + Params = + { + { + Name = "ofsX", + Type = "number", + }, + { + Name = "ofsZ", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3d", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offsets on the X and Z axes", + }, + addedY = + { + Params = + { + { + Name = "ofs", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3d", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offset on the Y axis", + }, + addedZ = + { + Params = + { + { + Name = "ofs", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3d", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offset on the Z axis", + }, Clamp = { Params = @@ -1643,6 +1715,78 @@ end { Notes = "<b>OBSOLETE</b>, use Abs() instead.", }, + addedX = + { + Params = + { + { + Name = "ofs", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3f", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offset on the X axis", + }, + addedXZ = + { + Params = + { + { + Name = "ofsX", + Type = "number", + }, + { + Name = "ofsZ", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3f", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offsets on the X and Z axes", + }, + addedY = + { + Params = + { + { + Name = "ofs", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3f", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offset on the Y axis", + }, + addedZ = + { + Params = + { + { + Name = "ofs", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3f", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offset on the Z axis", + }, Clamp = { Params = @@ -2168,6 +2312,78 @@ end { Notes = "<b>OBSOLETE</b>, use Abs() instead.", }, + addedX = + { + Params = + { + { + Name = "ofs", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3i", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offset on the X axis", + }, + addedXZ = + { + Params = + { + { + Name = "ofsX", + Type = "number", + }, + { + Name = "ofsZ", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3i", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offsets on the X and Z axes", + }, + addedY = + { + Params = + { + { + Name = "ofs", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3i", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offset on the Y axis", + }, + addedZ = + { + Params = + { + { + Name = "ofs", + Type = "number", + }, + }, + Returns = + { + { + Type = "Vector3i", + }, + }, + Notes = "Returns a copy of the vector, moved by the specified offset on the Z axis", + }, Clamp = { Params = |