Advertisement
Guest User

info

a guest
Dec 16th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.96 KB | None | 0 0
  1. Basic list of methods provided by peripheral.getMethods():
  2.     1. getInventoryName
  3.     2. pullItem
  4.     3. condenseItems
  5.     4. expandStack
  6.     5. getStackInSlot
  7.     6. listSources
  8.     7. getInventorySize
  9.     8. destroyStack
  10.     9. swapStacks
  11.    10. pushItemIntoSlot
  12.    11. getAdvancedMethodsData
  13.    12. pullItemIntoSlot
  14.    13. doc
  15.    14. listMethods
  16.    15. getAllStacks
  17.    16. pushItem
  18.  
  19. 1. getInventoryName
  20.  
  21. Return Type: string
  22. Description: Get the name of this inventory
  23.  
  24.   Arguments:
  25.  
  26. 2. pullItem
  27.  
  28. Return Type: number
  29. Description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  30.  
  31.   Arguments:
  32.  
  33.   1. direction
  34.   Description: The direction of the other inventory
  35.   Type: openperipheral.adapter.types.BoundedType@4c2ad461
  36.  
  37.   2. slot
  38.   Description: The slot in the OTHER inventory that you're pulling from
  39.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  40.  
  41.  3. maxAmount
  42.  Description: The maximum amount of items you want to pull
  43.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  44.  
  45.  4. intoSlot
  46.  Description: The slot in the current inventory that you want to pull into
  47.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  48.  
  49. 3. condenseItems
  50.  
  51. Return Type: ()
  52. Description: Condense and tidy the stacks in an inventory
  53.  
  54.  Arguments:
  55.  
  56. 4. expandStack
  57.  
  58. Return Type: table
  59. Description: Get full stack information from id and/or damage
  60.  
  61.  Arguments:
  62.  
  63.  1. stack
  64.  Description:
  65.  Type: openperipheral.adapter.types.NamedTupleType@4d92c4d9
  66.  
  67. 5. getStackInSlot
  68.  
  69. Return Type: object
  70. Description: Get details of an item in a particular slot
  71.  
  72.  Arguments:
  73.  
  74.  1. slotNumber
  75.  Description: Slot number
  76.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  77.  
  78.  2. proxy
  79.  Description: If true, method will return proxy instead of computing whole table
  80.  Type: openperipheral.adapter.types.SingleArgType@6290c1a8
  81.  
  82. 6. listSources
  83.  
  84. Return Type: table
  85. Description: List all method sources
  86.  
  87.  Arguments:
  88.  
  89. 7. getInventorySize
  90.  
  91. Return Type: number
  92. Description: Get the size of this inventory
  93.  
  94.  Arguments:
  95.  
  96. 8. destroyStack
  97.  
  98. Return Type: ()
  99. Description: Destroy a stack
  100.  
  101.  Arguments:
  102.  
  103.  1. slotNumber
  104.  Description: The slot number
  105.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  106.  
  107. 9. swapStacks
  108.  
  109. Return Type: ()
  110. Description: Swap two slots in the inventory
  111.  
  112.  Arguments:
  113.  
  114.  1. from
  115.  Description: The first slot
  116.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  117.  
  118.  2. to
  119.  Description: The other slot
  120.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  121.  
  122.  3. fromDirection
  123.  Description:
  124.  Type: openperipheral.adapter.types.BoundedType@572cf544
  125.  
  126.  4. fromDirection
  127.  Description:
  128.  Type: openperipheral.adapter.types.BoundedType@f1caff2
  129.  
  130. 10. pushItemIntoSlot
  131.  
  132. Return Type: number
  133. Description: Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved
  134.  
  135.  Arguments:
  136.  
  137.  1. direction
  138.  Description: The direction of the other inventory
  139.  Type: openperipheral.adapter.types.BoundedType@6a342215
  140.  
  141.  2. slot
  142.  Description: The slot in the current inventory that you're pushing from
  143.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  144.  
  145.   3. maxAmount
  146.   Description: The maximum amount of items you want to push
  147.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  148.  
  149.   4. intoSlot
  150.   Description: The slot in the other inventory that you want to push into (ignored when target is pipe
  151.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  152.  
  153. 11. getAdvancedMethodsData
  154.  
  155. Return Type: table
  156. Description: Get a complete table of information about all available methods
  157.  
  158.   Arguments:
  159.  
  160.   1. method
  161.   Description:
  162.   Type: openperipheral.adapter.types.SingleArgType@4f666d17
  163.  
  164. 12. pullItemIntoSlot
  165.  
  166. Return Type: number
  167. Description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  168.  
  169.   Arguments:
  170.  
  171.   1. direction
  172.   Description: The direction of the other inventory
  173.   Type: openperipheral.adapter.types.BoundedType@4c2ad461
  174.  
  175.   2. slot
  176.   Description: The slot in the OTHER inventory that you're pulling from
  177.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  178.  
  179.  3. maxAmount
  180.  Description: The maximum amount of items you want to pull
  181.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  182.  
  183.  4. intoSlot
  184.  Description: The slot in the current inventory that you want to pull into
  185.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  186.  
  187. 13. doc
  188.  
  189. Return Type: string
  190. Description: Brief description of method
  191.  
  192.  Arguments:
  193.  
  194.  1. method
  195.  Description:
  196.  Type: openperipheral.adapter.types.SingleArgType@4f666d17
  197.  
  198. 14. listMethods
  199.  
  200. Return Type: string
  201. Description: List all the methods available
  202.  
  203.  Arguments:
  204.  
  205.  1. filterSource
  206.  Description:
  207.  Type: openperipheral.adapter.types.SingleArgType@4f666d17
  208.  
  209. 15. getAllStacks
  210.  
  211. Return Type: table
  212. Description: Get a table with all the items of the chest
  213.  
  214.  Arguments:
  215.  
  216.  1. proxy
  217.  Description: If false, method will compute whole table, instead of returning proxy
  218.  Type: openperipheral.adapter.types.SingleArgType@6290c1a8
  219.  
  220. 16. pushItem
  221.  
  222. Return Type: number
  223. Description: Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved
  224.  
  225.  Arguments:
  226.  
  227.  1. direction
  228.  Description: The direction of the other inventory
  229.  Type: openperipheral.adapter.types.BoundedType@6a342215
  230.  
  231.  2. slot
  232.  Description: The slot in the current inventory that you're pushing from
  233.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  234.  
  235.   3. maxAmount
  236.   Description: The maximum amount of items you want to push
  237.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  238.  
  239.   4. intoSlot
  240.   Description: The slot in the other inventory that you want to push into (ignored when target is pipe
  241.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement