summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-24 16:27:48 +0200
committermadmaxoft <github@xoft.cz>2013-10-24 16:27:48 +0200
commit785301c9a07c22df204323cde261f93649e9481b (patch)
treedaa88a97153b05de64552164243734063361b5f6
parentFixed cPickup's constructor's parameter naming. (diff)
downloadcuberite-785301c9a07c22df204323cde261f93649e9481b.tar
cuberite-785301c9a07c22df204323cde261f93649e9481b.tar.gz
cuberite-785301c9a07c22df204323cde261f93649e9481b.tar.bz2
cuberite-785301c9a07c22df204323cde261f93649e9481b.tar.lz
cuberite-785301c9a07c22df204323cde261f93649e9481b.tar.xz
cuberite-785301c9a07c22df204323cde261f93649e9481b.tar.zst
cuberite-785301c9a07c22df204323cde261f93649e9481b.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua18
1 files changed, 10 insertions, 8 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 3b459e686..0d7770a49 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -1568,16 +1568,18 @@ a_Player:OpenWindow(Window);
cPickup =
{
- Desc = [[cPickup is a pickup object representation. It is also commonly known as "drops". With this class you could create your own "drop" or modify automatically created.
-]],
+ Desc = [[
+ This class represents a pickup entity (an item that the player or mobs can pick up). It is also
+ commonly known as "drops". With this class you could create your own "drop" or modify those
+ created automatically.
+ ]],
Functions =
{
- cPickup = { Notes = "[[cPickup}}" },
- GetItem = { Notes = "{{cItem|cItem}}" },
- CollectedBy = { Return = "bool" },
- },
- Constants =
- {
+ constructor = { Params = "PosX, PosY, PosZ, {{cItem|Item}}, IsPlayerCreated, [SpeedX, SpeedY, SpeedZ]", Return = "cPickup", Notes = "Creates a new pickup at the specified coords. If IsPlayerCreated is true, the pickup has a longer initial collection interval." },
+ CollectedBy = { Params = "{{cPlayer}}", Return = "bool", Notes = "Tries to make the player collect the pickup. Returns true if the pickup was collected, at least partially." },
+ GetAge = { Params = "", Return = "number", Notes = "Returns the number of ticks that the pickup has existed." },
+ GetItem = { Params = "", Return = "{{cItem|cItem}}", Notes = "Returns the item represented by this pickup" },
+ IsCollected = { Params = "", Return = "bool", Notes = "Returns true if this pickup has already been collected (is waiting to be destroyed)" },
},
Inherits = "cEntity",
},