Advertisement
Guest User

ender_chest

a guest
Aug 23rd, 2014
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.76 KB | None | 0 0
  1. METHODMAN: Practical display for in game documentation of computercraft + addons
  2.  
  3. Peripheral found
  4.     Side: top
  5.     Type: ender_chest
  6.  
  7. ender_chest method list:
  8.  
  9.     swapStacks
  10.     getInventoryName
  11.     setColours
  12.     destroyStack
  13.     pushItem
  14.     setColorNames
  15.     getAdvancedMethodsData
  16.     setColors
  17.     getInventorySize
  18.     getColorNames
  19.     setFrequency
  20.     pushItemIntoSlot
  21.     getStackInSlot
  22.     getAllStacks
  23.     getColors
  24.     listMethods
  25.     getFrequency
  26.     getColours
  27.     pullItem
  28.     condenseItems
  29.     pullItemIntoSlot
  30.  
  31. Open Peripherals Advanced Method Data
  32.  
  33. 1. setColorNames
  34.  
  35. Return Type:
  36. Description: Set the frequency of this chest or tank
  37.  
  38.     Arguments: setColorNames(color_left, color_middle, color_right)
  39.  
  40.         1. color_left
  41.         Description:
  42.         Type: STRING
  43.         2. color_middle
  44.         Description:
  45.         Type: STRING
  46.         3. color_right
  47.         Description:
  48.         Type: STRING
  49.  
  50. 2. listMethods
  51.  
  52. Return Type: STRING
  53. Description: List all the methods available
  54.  
  55.     Arguments: listMethods()
  56.     No Arguments
  57.  
  58. 3. destroyStack
  59.  
  60. Return Type: VOID
  61. Description: Destroy a stack
  62.  
  63.     Arguments: destroyStack(slotNumber)
  64.  
  65.         1. slotNumber
  66.         Description: The slot number, from 1 to the max amount of slots
  67.         Type: NUMBER
  68.  
  69. 4. getColours
  70.  
  71. Return Type: NUMBER, NUMBER, NUMBER
  72. Description: Get the colours active on this chest or tank
  73.  
  74.     Arguments: getColours()
  75.     No Arguments
  76.  
  77. 5. getColorNames
  78.  
  79. Return Type: STRING, STRING, STRING
  80. Description: Get the colours active on this chest or tank
  81.  
  82.     Arguments: getColorNames()
  83.     No Arguments
  84.  
  85. 6. pullItem
  86.  
  87. Return Type: NUMBER
  88. Description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  89.  
  90.     Arguments: pullItem(direction, slot, maxAmount, intoSlot)
  91.  
  92.         1. direction
  93.         Description: The direction of the other inventory. (north, south, east, west, up or down)
  94.         Type: STRING
  95.         2. slot
  96.         Description: The slot in the OTHER inventory that you're pulling from
  97.         Type: NUMBER
  98.         3. maxAmount
  99.         Description: The maximum amount of items you want to pull
  100.         Type: NUMBER
  101.         4. intoSlot
  102.         Description: The slot in the current inventory that you want to pull into
  103.         Type: NUMBER
  104.  
  105. 7. pullItemIntoSlot
  106.  
  107. Return Type: NUMBER
  108. Description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  109.  
  110.     Arguments: pullItemIntoSlot(direction, slot, maxAmount, intoSlot)
  111.  
  112.         1. direction
  113.         Description: The direction of the other inventory. (north, south, east, west, up or down)
  114.         Type: STRING
  115.         2. slot
  116.         Description: The slot in the OTHER inventory that you're pulling from
  117.         Type: NUMBER
  118.         3. maxAmount
  119.         Description: The maximum amount of items you want to pull
  120.         Type: NUMBER
  121.         4. intoSlot
  122.         Description: The slot in the current inventory that you want to pull into
  123.         Type: NUMBER
  124.  
  125. 8. setColors
  126.  
  127. Return Type: VOID
  128. Description: Set the frequency of this chest or tank
  129.  
  130.     Arguments: setColors(color_left, color_middle, color_right)
  131.  
  132.         1. color_left
  133.         Description: The first color
  134.         Type: NUMBER
  135.         2. color_middle
  136.         Description: The second color
  137.         Type: NUMBER
  138.         3. color_right
  139.         Description: The third color
  140.         Type: NUMBER
  141.  
  142. 9. condenseItems
  143.  
  144. Return Type: VOID
  145. Description: Condense and tidy the stacks in an inventory
  146.  
  147.     Arguments: condenseItems()
  148.     No Arguments
  149.  
  150. 10. setFrequency
  151.  
  152. Return Type: VOID
  153. Description: Set the frequency of this chest or tank
  154.  
  155.     Arguments: setFrequency(frequency)
  156.  
  157.         1. frequency
  158.         Description: A single color that represents all three colours on this chest or tank
  159.         Type: NUMBER
  160.  
  161. 11. getInventorySize
  162.  
  163. Return Type: NUMBER
  164. Description: Get the size of this inventory
  165.  
  166.     Arguments: getInventorySize()
  167.     No Arguments
  168.  
  169. 12. getAllStacks
  170.  
  171. Return Type: TABLE
  172. Description: Get a table with all the items of the chest
  173.  
  174.     Arguments: getAllStacks()
  175.     No Arguments
  176.  
  177. 13. getInventoryName
  178.  
  179. Return Type: STRING
  180. Description: Get the name of this inventory
  181.  
  182.     Arguments: getInventoryName()
  183.     No Arguments
  184.  
  185. 14. pushItemIntoSlot
  186.  
  187. Return Type: NUMBER
  188. Description: Push an item from the current inventory into slot on the other one. Returns the amount of items moved
  189.  
  190.     Arguments: pushItemIntoSlot(direction, slot, maxAmount, intoSlot)
  191.  
  192.         1. direction
  193.         Description: The direction of the other inventory. (north, south, east, west, up or down)
  194.         Type: STRING
  195.         2. slot
  196.         Description: The slot in the current inventory that you're pushing from
  197.         Type: NUMBER
  198.         3. maxAmount
  199.         Description: The maximum amount of items you want to push
  200.         Type: NUMBER
  201.         4. intoSlot
  202.         Description: The slot in the other inventory that you want to push into
  203.         Type: NUMBER
  204.  
  205. 15. pushItem
  206.  
  207. Return Type: NUMBER
  208. Description: Push an item from the current inventory into slot on the other one. Returns the amount of items moved
  209.  
  210.     Arguments: pushItem(direction, slot, maxAmount, intoSlot)
  211.  
  212.         1. direction
  213.         Description: The direction of the other inventory. (north, south, east, west, up or down)
  214.         Type: STRING
  215.         2. slot
  216.         Description: The slot in the current inventory that you're pushing from
  217.         Type: NUMBER
  218.         3. maxAmount
  219.         Description: The maximum amount of items you want to push
  220.         Type: NUMBER
  221.         4. intoSlot
  222.         Description: The slot in the other inventory that you want to push into
  223.         Type: NUMBER
  224.  
  225. 16. getStackInSlot
  226.  
  227. Return Type: TABLE
  228. Description: Get details of an item in a particular slot
  229.  
  230.     Arguments: getStackInSlot(slotNumber)
  231.  
  232.         1. slotNumber
  233.         Description: The slot number, from 1 to the max amount of slots
  234.         Type: NUMBER
  235.  
  236. 17. setColours
  237.  
  238. Return Type: VOID
  239. Description: Set the frequency of this chest or tank
  240.  
  241.     Arguments: setColours(color_left, color_middle, color_right)
  242.  
  243.         1. color_left
  244.         Description: The first color
  245.         Type: NUMBER
  246.         2. color_middle
  247.         Description: The second color
  248.         Type: NUMBER
  249.         3. color_right
  250.         Description: The third color
  251.         Type: NUMBER
  252.  
  253. 18. swapStacks
  254.  
  255. Return Type:
  256. Description: Swap two slots in the inventory
  257.  
  258.     Arguments: swapStacks(from, to, fromDirection, fromDirection)
  259.  
  260.         1. from
  261.         Description: The first slot
  262.         Type: NUMBER
  263.         2. to
  264.         Description: The other slot
  265.         Type: NUMBER
  266.         3. fromDirection
  267.         Description:
  268.         Type: STRING
  269.         4. fromDirection
  270.         Description:
  271.         Type: STRING
  272.  
  273. 19. getAdvancedMethodsData
  274.  
  275. Return Type: TABLE
  276. Description: Get a complete table of information about all available methods
  277.  
  278.     Arguments: getAdvancedMethodsData()
  279.     No Arguments
  280.  
  281. 20. getFrequency
  282.  
  283. Return Type: TABLE
  284. Description: Get the frequency of this chest or tank
  285.  
  286.     Arguments: getFrequency()
  287.     No Arguments
  288.  
  289. 21. getColors
  290.  
  291. Return Type: NUMBER, NUMBER, NUMBER
  292. Description: Get the colours active on this chest or tank
  293.  
  294.     Arguments: getColors()
  295.     No Arguments
  296.  
  297.  
  298. --------------------
  299.  
  300. All actual documentation is written by the mod developer who made the peripheral, not me. I just displayed it - happy computercrafting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement