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/BlockEntities.lua | 33 ++++-------------------- 1 file changed, 5 insertions(+), 28 deletions(-) (limited to 'Server/Plugins/APIDump/Classes/BlockEntities.lua') diff --git a/Server/Plugins/APIDump/Classes/BlockEntities.lua b/Server/Plugins/APIDump/Classes/BlockEntities.lua index fc4f6ec0b..debefda7a 100644 --- a/Server/Plugins/APIDump/Classes/BlockEntities.lua +++ b/Server/Plugins/APIDump/Classes/BlockEntities.lua @@ -806,37 +806,14 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(), Params = { { - Name = "BlockX", - Type = "number", - }, - { - Name = "BlockY", - Type = "number", - }, - { - Name = "BlockZ", - Type = "number", + Name = "BlockPos", + Type = "Vector3i", }, { Name = "BlockMeta", 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", }, }, @@ -1586,11 +1563,11 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(), Type = "number", }, }, - Notes = "Returns the current pitch set for the block", + Notes = "(DEPRECATED) Please use cNoteEntity:GetNote. Returns the current pitch set for the block", }, IncrementPitch = { - Notes = "Adds 1 to the current pitch. Wraps around to 0 when the pitch cannot go any higher.", + Notes = "(DEPRECATED) Please use cNoteEntity:IncrementNote. Adds 1 to the current pitch. Wraps around to 0 when the pitch cannot go any higher.", }, MakeSound = { @@ -1605,7 +1582,7 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(), Type = "number", }, }, - Notes = "Sets a new note for the block.", + Notes = "(DEPRECATED) Please use cNoteEntity:SetNote. Sets a new note for the block.", }, }, Inherits = "cBlockEntity", -- cgit v1.2.3