Advertisement
Daraketh

chestAPI openP

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