Added missing return types and fixed param types (#4996)
This commit is contained in:
parent
9419c78609
commit
aee4778bf7
@ -11377,6 +11377,12 @@ a_Player:OpenWindow(Window);
|
|||||||
Type = "function",
|
Type = "function",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Returns =
|
||||||
|
{
|
||||||
|
{
|
||||||
|
Type = "boolean",
|
||||||
|
},
|
||||||
|
},
|
||||||
Notes = "Calls the given callback function for each player. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cPlayer|cPlayer}})</pre>",
|
Notes = "Calls the given callback function for each player. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cPlayer|cPlayer}})</pre>",
|
||||||
},
|
},
|
||||||
ForEachWorld =
|
ForEachWorld =
|
||||||
@ -11388,7 +11394,13 @@ a_Player:OpenWindow(Window);
|
|||||||
Type = "function",
|
Type = "function",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Notes = "Calls the given callback function for each world. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cWorld|cWorld}})</pre>",
|
Returns =
|
||||||
|
{
|
||||||
|
{
|
||||||
|
Type = "boolean",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Notes = "Calls the given callback function for each world. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cWorld|cWorld}})</pre>. Returns false if a callback aborts, otherwise true.",
|
||||||
},
|
},
|
||||||
Get =
|
Get =
|
||||||
{
|
{
|
||||||
@ -12521,7 +12533,7 @@ local CompressedString = cStringCompression.CompressStringGZIP("DataToCompress")
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name = "Port",
|
Name = "Port",
|
||||||
Type = "string",
|
Type = "number",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name = "Path",
|
Name = "Path",
|
||||||
@ -12564,7 +12576,7 @@ local CompressedString = cStringCompression.CompressStringGZIP("DataToCompress")
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name = "Port",
|
Name = "Port",
|
||||||
Type = "string",
|
Type = "number",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Notes = "Parses the Authority part of the URL. Parts that are not explicitly specified in the AuthPart are returned empty, the port is returned zero. If parsing fails, the function returns nil and an error message.",
|
Notes = "Parses the Authority part of the URL. Parts that are not explicitly specified in the AuthPart are returned empty, the port is returned zero. If parsing fails, the function returns nil and an error message.",
|
||||||
|
@ -806,37 +806,14 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(),
|
|||||||
Params =
|
Params =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
Name = "BlockX",
|
Name = "BlockPos",
|
||||||
Type = "number",
|
Type = "Vector3i",
|
||||||
},
|
|
||||||
{
|
|
||||||
Name = "BlockY",
|
|
||||||
Type = "number",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Name = "BlockZ",
|
|
||||||
Type = "number",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name = "BlockMeta",
|
Name = "BlockMeta",
|
||||||
Type = "number",
|
Type = "number",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Returns =
|
|
||||||
{
|
|
||||||
{
|
|
||||||
Name = "BlockX",
|
|
||||||
Type = "number",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Name = "BlockY",
|
|
||||||
Type = "number",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Name = "BlockZ",
|
|
||||||
Type = "number",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Notes = "Adjusts the block coords to where the dropspenser items materialize",
|
Notes = "Adjusts the block coords to where the dropspenser items materialize",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -1586,11 +1563,11 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(),
|
|||||||
Type = "number",
|
Type = "number",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Notes = "Returns the current pitch set for the block",
|
Notes = "(<b>DEPRECATED</b>) Please use cNoteEntity:GetNote. Returns the current pitch set for the block",
|
||||||
},
|
},
|
||||||
IncrementPitch =
|
IncrementPitch =
|
||||||
{
|
{
|
||||||
Notes = "Adds 1 to the current pitch. Wraps around to 0 when the pitch cannot go any higher.",
|
Notes = "(<b>DEPRECATED</b>) Please use cNoteEntity:IncrementNote. Adds 1 to the current pitch. Wraps around to 0 when the pitch cannot go any higher.",
|
||||||
},
|
},
|
||||||
MakeSound =
|
MakeSound =
|
||||||
{
|
{
|
||||||
@ -1605,7 +1582,7 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(),
|
|||||||
Type = "number",
|
Type = "number",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Notes = "Sets a new note for the block.",
|
Notes = "(<b>DEPRECATED</b>) Please use cNoteEntity:SetNote. Sets a new note for the block.",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Inherits = "cBlockEntity",
|
Inherits = "cBlockEntity",
|
||||||
|
@ -2256,7 +2256,13 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i
|
|||||||
Type = "Vector3i",
|
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 =
|
GrowTreeByBiome =
|
||||||
{
|
{
|
||||||
@ -2267,7 +2273,13 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i
|
|||||||
Type = "Vector3i",
|
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 =
|
GrowTreeFromSapling =
|
||||||
{
|
{
|
||||||
@ -2278,7 +2290,13 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i
|
|||||||
Type = "Vector3i",
|
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 =
|
IsBlockDirectlyWatered =
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user