summaryrefslogtreecommitdiffstats
path: root/Server
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-08-09 14:53:57 +0200
committerMattes D <github@xoft.cz>2019-08-10 12:25:06 +0200
commitd0b095ad512959bf15be0f81a972898f5b89099d (patch)
treec8ed92dc28a048e134d3f13b4c215d42dca7b956 /Server
parentRemoved coord-based API from cCuboid. (#4362) (diff)
downloadcuberite-d0b095ad512959bf15be0f81a972898f5b89099d.tar
cuberite-d0b095ad512959bf15be0f81a972898f5b89099d.tar.gz
cuberite-d0b095ad512959bf15be0f81a972898f5b89099d.tar.bz2
cuberite-d0b095ad512959bf15be0f81a972898f5b89099d.tar.lz
cuberite-d0b095ad512959bf15be0f81a972898f5b89099d.tar.xz
cuberite-d0b095ad512959bf15be0f81a972898f5b89099d.tar.zst
cuberite-d0b095ad512959bf15be0f81a972898f5b89099d.zip
Diffstat (limited to '')
-rw-r--r--Server/Plugins/APIDump/Classes/Geometry.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/Server/Plugins/APIDump/Classes/Geometry.lua b/Server/Plugins/APIDump/Classes/Geometry.lua
index e086d23fa..def786685 100644
--- a/Server/Plugins/APIDump/Classes/Geometry.lua
+++ b/Server/Plugins/APIDump/Classes/Geometry.lua
@@ -581,6 +581,28 @@ return
Notes = "Assigns all the coords to the specified values. Sort-state is ignored.",
},
},
+ Clamp =
+ {
+ Params =
+ {
+ {
+ Name = "Limits",
+ Type = "cCuboid",
+ },
+ },
+ Notes = "Clamps this cuboid, so that it doesn't reach outside of Limits in any direction. Assumes both cuboids are sorted.",
+ },
+ ClampSize =
+ {
+ Params =
+ {
+ {
+ Name = "MaxSize",
+ Type = "Vector3i",
+ },
+ },
+ Notes = "Clamps this cuboid's p2 so that the cuboid's size doesn't exceed the specified max size. Assumes the cuboid is sorted.",
+ },
ClampX =
{
Params =