summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-15 12:42:35 +0100
committermadmaxoft <github@xoft.cz>2013-11-15 12:42:35 +0100
commit194aa1decb532859439f4f554069883e96a0ce48 (patch)
tree9694467fc7e6bd72f2c10f5781f79ffc50349e24 /MCServer/Plugins/APIDump
parentAPIDump: Documented cChunkDesc:GetBlockEntity(). (diff)
downloadcuberite-194aa1decb532859439f4f554069883e96a0ce48.tar
cuberite-194aa1decb532859439f4f554069883e96a0ce48.tar.gz
cuberite-194aa1decb532859439f4f554069883e96a0ce48.tar.bz2
cuberite-194aa1decb532859439f4f554069883e96a0ce48.tar.lz
cuberite-194aa1decb532859439f4f554069883e96a0ce48.tar.xz
cuberite-194aa1decb532859439f4f554069883e96a0ce48.tar.zst
cuberite-194aa1decb532859439f4f554069883e96a0ce48.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 0604032b0..993c2a40b 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -1464,6 +1464,22 @@ end
},
}, -- cItems
+ cJukeboxEntity =
+ {
+ Desc = [[
+ This class represents a jukebox in the world. It can play the records, either when the
+ {{cPlayer|player}} uses the record on the jukebox, or when a plugin instructs it to play.
+ ]],
+ Inherits = "cBlockEntity",
+ Functions =
+ {
+ EjectRecord = { Params = "", Return = "", Notes = "Ejects the current record as a {{cPickup|pickup}}. No action if there's no current record. To remove record without generating the pickup, use SetRecord(0)" },
+ GetRecord = { Params = "", Return = "number", Notes = "Returns the record currently present. Zero for no record, E_ITEM_*_DISC for records." },
+ PlayRecord = { Params = "", Return = "", Notes = "Plays the currently present record. No action if there's no current record." },
+ SetRecord = { Params = "number", Return = "", Notes = "Sets the currently present record. Use zero for no record, or E_ITEM_*_DISC for records." },
+ },
+ }, -- cJukeboxEntity
+
cLineBlockTracer =
{
Desc = [[Objects of this class provide an easy-to-use interface to tracing lines through individual