Advertisement
Guest User

extrautils_filing_cabinet

a guest
Sep 2nd, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.82 KB | None | 0 0
  1. METHODMAN: Practical display for in game documentation of computercraft + addons
  2.  
  3. Peripheral found
  4.     Side: back
  5.     Type: extrautils_filing_cabinet
  6.  
  7. extrautils_filing_cabinet method list:
  8.  
  9.     condenseItems
  10.     destroyStack
  11.     getAdvancedMethodsData
  12.     getAllStacks
  13.     getInventoryName
  14.     getInventorySize
  15.     getStackInSlot
  16.     listMethods
  17.     pullItem
  18.     pullItemIntoSlot
  19.     pushItem
  20.     pushItemIntoSlot
  21.     swapStacks
  22.  
  23. Open Peripherals Advanced Method Data
  24.  
  25. 1. getAllStacks
  26.  
  27. Return Type: TABLE
  28. Description: Get a table with all the items of the chest
  29.  
  30.     Arguments: getAllStacks()
  31.     No Arguments
  32.  
  33. 2. getStackInSlot
  34.  
  35. Return Type: TABLE
  36. Description: Get details of an item in a particular slot
  37.  
  38.     Arguments: getStackInSlot(slotNumber)
  39.  
  40.         1. slotNumber
  41.         Description: The slot number, from 1 to the max amount of slots
  42.         Type: NUMBER
  43.  
  44. 3. getInventorySize
  45.  
  46. Return Type: NUMBER
  47. Description: Get the size of this inventory
  48.  
  49.     Arguments: getInventorySize()
  50.     No Arguments
  51.  
  52. 4. pullItemIntoSlot
  53.  
  54. Return Type: NUMBER
  55. Description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  56.  
  57.     Arguments: pullItemIntoSlot(direction, slot, maxAmount, intoSlot)
  58.  
  59.         1. direction
  60.         Description: The direction of the other inventory. (north, south, east, west, up or down)
  61.         Type: STRING
  62.         2. slot
  63.         Description: The slot in the OTHER inventory that you're pulling from
  64.         Type: NUMBER
  65.         3. maxAmount
  66.         Description: The maximum amount of items you want to pull
  67.         Type: NUMBER
  68.         4. intoSlot
  69.         Description: The slot in the current inventory that you want to pull into
  70.         Type: NUMBER
  71.  
  72. 5. swapStacks
  73.  
  74. Return Type:
  75. Description: Swap two slots in the inventory
  76.  
  77.     Arguments: swapStacks(from, to, fromDirection, fromDirection)
  78.  
  79.         1. from
  80.         Description: The first slot
  81.         Type: NUMBER
  82.         2. to
  83.         Description: The other slot
  84.         Type: NUMBER
  85.         3. fromDirection
  86.         Description:
  87.         Type: STRING
  88.         4. fromDirection
  89.         Description:
  90.         Type: STRING
  91.  
  92. 6. getAdvancedMethodsData
  93.  
  94. Return Type: TABLE
  95. Description: Get a complete table of information about all available methods
  96.  
  97.     Arguments: getAdvancedMethodsData()
  98.     No Arguments
  99.  
  100. 7. condenseItems
  101.  
  102. Return Type: VOID
  103. Description: Condense and tidy the stacks in an inventory
  104.  
  105.     Arguments: condenseItems()
  106.     No Arguments
  107.  
  108. 8. listMethods
  109.  
  110. Return Type: STRING
  111. Description: List all the methods available
  112.  
  113.     Arguments: listMethods()
  114.     No Arguments
  115.  
  116. 9. getInventoryName
  117.  
  118. Return Type: STRING
  119. Description: Get the name of this inventory
  120.  
  121.     Arguments: getInventoryName()
  122.     No Arguments
  123.  
  124. 10. destroyStack
  125.  
  126. Return Type: VOID
  127. Description: Destroy a stack
  128.  
  129.     Arguments: destroyStack(slotNumber)
  130.  
  131.         1. slotNumber
  132.         Description: The slot number, from 1 to the max amount of slots
  133.         Type: NUMBER
  134.  
  135. 11. pullItem
  136.  
  137. Return Type: NUMBER
  138. Description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  139.  
  140.     Arguments: pullItem(direction, slot, maxAmount, intoSlot)
  141.  
  142.         1. direction
  143.         Description: The direction of the other inventory. (north, south, east, west, up or down)
  144.         Type: STRING
  145.         2. slot
  146.         Description: The slot in the OTHER inventory that you're pulling from
  147.         Type: NUMBER
  148.         3. maxAmount
  149.         Description: The maximum amount of items you want to pull
  150.         Type: NUMBER
  151.         4. intoSlot
  152.         Description: The slot in the current inventory that you want to pull into
  153.         Type: NUMBER
  154.  
  155. 12. pushItem
  156.  
  157. Return Type: NUMBER
  158. Description: Push an item from the current inventory into slot on the other one. Returns the amount of items moved
  159.  
  160.     Arguments: pushItem(direction, slot, maxAmount, intoSlot)
  161.  
  162.         1. direction
  163.         Description: The direction of the other inventory. (north, south, east, west, up or down)
  164.         Type: STRING
  165.         2. slot
  166.         Description: The slot in the current inventory that you're pushing from
  167.         Type: NUMBER
  168.         3. maxAmount
  169.         Description: The maximum amount of items you want to push
  170.         Type: NUMBER
  171.         4. intoSlot
  172.         Description: The slot in the other inventory that you want to push into
  173.         Type: NUMBER
  174.  
  175. 13. pushItemIntoSlot
  176.  
  177. Return Type: NUMBER
  178. Description: Push an item from the current inventory into slot on the other one. Returns the amount of items moved
  179.  
  180.     Arguments: pushItemIntoSlot(direction, slot, maxAmount, intoSlot)
  181.  
  182.         1. direction
  183.         Description: The direction of the other inventory. (north, south, east, west, up or down)
  184.         Type: STRING
  185.         2. slot
  186.         Description: The slot in the current inventory that you're pushing from
  187.         Type: NUMBER
  188.         3. maxAmount
  189.         Description: The maximum amount of items you want to push
  190.         Type: NUMBER
  191.         4. intoSlot
  192.         Description: The slot in the other inventory that you want to push into
  193.         Type: NUMBER
  194.  
  195.  
  196. --------------------
  197.  
  198. 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