Advertisement
Guest User

peripheral

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