diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2020-11-06 16:00:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 16:00:59 +0100 |
commit | 36a67df105ab4774d2a250ef3c7d6336cb50566e (patch) | |
tree | 2725a48a3c8a8de5f6ef062d9415d019042ba486 /Server/Plugins/APIDump | |
parent | Players are no longer kicked when clicking on bedrock (#5023) (diff) | |
download | cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar.gz cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar.bz2 cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar.lz cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar.xz cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.tar.zst cuberite-36a67df105ab4774d2a250ef3c7d6336cb50566e.zip |
Diffstat (limited to '')
-rw-r--r-- | Server/Plugins/APIDump/APIDesc.lua | 97 | ||||
-rw-r--r-- | Server/Plugins/APIDump/Classes/World.lua | 2 |
2 files changed, 86 insertions, 13 deletions
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()</pre> All return values from the callbacks are i { Name = "ShowBottom", Type = "boolean", - } + }, }, Returns = { |