From 365cbc6e1cea96741e26c9ce912b003f8fd2c62c Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 29 Sep 2019 14:59:24 +0200 Subject: Refactored more of Entities and BlockEntities to use Vector3. (#4403) --- Server/Plugins/APIDump/Classes/BlockEntities.lua | 10 ++ Server/Plugins/APIDump/Classes/Geometry.lua | 216 +++++++++++++++++++++++ 2 files changed, 226 insertions(+) (limited to 'Server') 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 = "OBSOLETE, 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 = "OBSOLETE, 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 = "OBSOLETE, 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 = -- cgit v1.2.3