summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-23 12:19:43 +0200
committermadmaxoft <github@xoft.cz>2013-10-23 12:19:43 +0200
commit60abe99d5e993408c5de3ab25dc91bbb9900d785 (patch)
treeacea75cddad8571ebb6d7db5c87af155ef555f5a /MCServer/Plugins/APIDump/APIDesc.lua
parentAPIDump: Linkified cEntity returns. (diff)
downloadcuberite-60abe99d5e993408c5de3ab25dc91bbb9900d785.tar
cuberite-60abe99d5e993408c5de3ab25dc91bbb9900d785.tar.gz
cuberite-60abe99d5e993408c5de3ab25dc91bbb9900d785.tar.bz2
cuberite-60abe99d5e993408c5de3ab25dc91bbb9900d785.tar.lz
cuberite-60abe99d5e993408c5de3ab25dc91bbb9900d785.tar.xz
cuberite-60abe99d5e993408c5de3ab25dc91bbb9900d785.tar.zst
cuberite-60abe99d5e993408c5de3ab25dc91bbb9900d785.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 63928e64c..3fcb68919 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -938,6 +938,28 @@ cFile:Delete("/usr/bin/virus.exe");
},
},
+ cHopperEntity =
+ {
+ Desc = [[
+ This class represents a hopper block entity in the world.</p>
+ <p>
+ Plugins may use this class during chunk generation ({{OnChunkGenerated|HOOK_CHUNK_GENERATED}} and
+ {{OnChunkGenerating|HOOK_CHUNK_GENERATING}}) to add hoppers to the generated chunk.
+ ]],
+ Functions =
+ {
+ constructor = { Params = "BlockX, BlockY, BlockZ", Return = "cHopperEntity", Notes = "Creates and returns a new hopper at the specified coords." },
+ GetOutputBlockPos = { Params = "BlockMeta", Return = "bool, BlockX, BlockY, BlockZ", Notes = "Returns whether the hopper is attached, and if so, the block coords of the block receiving the output items, based on the given meta." },
+ },
+ Constants =
+ {
+ ContentsHeight = { Notes = "Height (Y) of the internal {{cItemGrid}} representing the hopper contents." },
+ ContentsWidth = { Notes = "Width (X) of the internal {{cItemGrid}} representing the hopper contents." },
+ TICKS_PER_TRANSFER = { Notes = "Number of ticks between when the hopper transfers items." },
+ },
+ Inherits = "cBlockEntityWithItems",
+ },
+
cIniFile =
{
Desc = [[The cIniFile is a class that makes it simple to read from and write to INI files. MCServer uses mostly INI files for settings and options.