From 36a67df105ab4774d2a250ef3c7d6336cb50566e Mon Sep 17 00:00:00 2001 From: 12xx12 <44411062+12xx12@users.noreply.github.com> Date: Fri, 6 Nov 2020 16:00:59 +0100 Subject: Ender Crytal Fix and report proper cmake file for luabindingscheck fail (#5017) * fixed network fixed explosion fixed ticking added network broadcast to Setter method added nullptr protection using macros in 1.10 Protocol_1_10.cpp revealed functions to LUA API small fixups, typos, less functions used fixed more doc readded info that saving is done only if the beam is displayed made the constructor transfer all needed members fixed wrong commit removed default parameters on SpawnEnderCrystal fixed wrong metadata moved call to destroy in the right place fixed some typos Fixed Ender Crystal * fixed documentation * fixed doc and added proper error message * Parameters, arrows * Parameters Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang --- Server/Plugins/APIDump/APIDesc.lua | 97 ++++++++++++++++++++++++++++---- Server/Plugins/APIDump/Classes/World.lua | 2 +- 2 files changed, 86 insertions(+), 13 deletions(-) (limited to 'Server') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index fb74d8032..3b46577de 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -5061,8 +5061,8 @@ cFile:DeleteFile("/usr/bin/virus.exe"); { Returns = { - Name = "BitePosition", - Type = "Vector3d", + Name = "BitePosition", + Type = "Vector3d", }, Notes = "Returns the position of the floater just before a fish bites. If a fish hasn't bitten the floater, this function returns the position the floater was cast from.", }, @@ -8900,16 +8900,16 @@ a_Player:OpenWindow(Window); ]], Functions = { - BurnsInDaylight = - { - Returns = - { - { - Type = "boolean", - }, - }, - Notes = "Returns whether the mob burns in daylight.", - }, + BurnsInDaylight = + { + Returns = + { + { + Type = "boolean", + }, + }, + Notes = "Returns whether the mob burns in daylight.", + }, CanBeLeashed = { Returns = @@ -9539,6 +9539,79 @@ a_Player:OpenWindow(Window); }, Inherits = "cEntity", }, + cEnderCrystal = + { + Desc = [[ + This class represents an ender crystal. This entity can be spawned by using {{cWorld#SpawnEnderCrystal_1|cWorld:SpawnEnderCrystal}}. + ]], + Functions = + { + DisplaysBeam = + { + Returns = + { + { + Type = "boolean", + }, + Notes = "Returns true if the ender crystal displays its beam.", + }, + }, + GetBeamTarget = + { + Returns = + { + { + Type = "Vector3i", + }, + }, + Notes = "Returns the Block position the beam is pointing to.", + }, + SetBeamTarget = + { + Params = + { + { + Name = "BeamTarget", + Type = "Vector3i", + }, + }, + Notes = "Sets the target of the beam of this ender crystal.", + }, + SetDisplayBeam = + { + Params = + { + { + Name = "DisplaysBeam", + Type = "boolean", + }, + Notes = "Sets if the ender crystal should display its beam.", + }, + }, + SetShowBottom = + { + Params = + { + { + Name = "ShowsBottom", + Type = "boolean", + }, + Notes = "Sets if the ender crystal should broadcast its bedrock base.", + }, + }, + ShowsBottom = + { + Returns = + { + { + Type = "boolean", + }, + Notes = "Returns true if the bedrock base is displayed.", + }, + }, + }, + Inherits = "cEntity", + }, cExpOrb = { Desc = [[ diff --git a/Server/Plugins/APIDump/Classes/World.lua b/Server/Plugins/APIDump/Classes/World.lua index 50db080a8..2f5d0b8f2 100644 --- a/Server/Plugins/APIDump/Classes/World.lua +++ b/Server/Plugins/APIDump/Classes/World.lua @@ -3317,7 +3317,7 @@ function OnAllChunksAvailable() All return values from the callbacks are i { Name = "ShowBottom", Type = "boolean", - } + }, }, Returns = { -- cgit v1.2.3