From aee4778bf7268212b918c2ef2b7a61801aaa97cf Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Tue, 13 Oct 2020 22:59:11 +0200 Subject: Added missing return types and fixed param types (#4996) --- Server/Plugins/APIDump/Classes/World.lua | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'Server/Plugins/APIDump/Classes/World.lua') diff --git a/Server/Plugins/APIDump/Classes/World.lua b/Server/Plugins/APIDump/Classes/World.lua index acfa05727..7f137cf72 100644 --- a/Server/Plugins/APIDump/Classes/World.lua +++ b/Server/Plugins/APIDump/Classes/World.lua @@ -2256,7 +2256,13 @@ function OnAllChunksAvailable() All return values from the callbacks are i Type = "Vector3i", }, }, - Notes = "Grows a tree based at the specified coords. If there is a sapling there, grows the tree based on that sapling, otherwise chooses a tree image based on the biome.", + Returns = + { + { + Type = "boolean", + }, + }, + Notes = "Grows a tree based at the specified coords. If there is a sapling there, grows the tree based on that sapling, otherwise chooses a tree image based on the biome. Returns true if the tree was grown, false if not (invalid chunk, insufficient space)", }, GrowTreeByBiome = { @@ -2267,7 +2273,13 @@ function OnAllChunksAvailable() All return values from the callbacks are i Type = "Vector3i", }, }, - Notes = "Grows a tree based at the specified coords. The tree type is picked from types available for the biome at those coords.", + Returns = + { + { + Type = "boolean", + }, + }, + Notes = "Grows a tree based at the specified coords. The tree type is picked from types available for the biome at those coords. Returns true if the tree was grown, false if not (invalid chunk, insufficient space)", }, GrowTreeFromSapling = { @@ -2278,7 +2290,13 @@ function OnAllChunksAvailable() All return values from the callbacks are i Type = "Vector3i", }, }, - Notes = "Grows a tree based at the specified coords. The tree type is determined from the sapling meta. If the sapling is part of a 2x2 sapling area, grows a large tree.", + Returns = + { + { + Type = "boolean", + }, + }, + Notes = "Grows a tree based at the specified coords. The tree type is determined from the sapling meta. If the sapling is part of a 2x2 sapling area, grows a large tree. Returns true if the tree was grown, false if not (invalid chunk, insufficient space)", }, IsBlockDirectlyWatered = { -- cgit v1.2.3