Advertisement
Daraketh

announceAPI

Aug 1st, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.03 KB | None | 0 0
  1. getActivationEnergy:
  2. returnTypes:
  3. 1: NUMBER
  4. description: Get the activation MJ for this block
  5. args:
  6. 1:
  7. type: STRING
  8. description: The side of the block that you're interested in
  9. name: direction
  10.  
  11. ==========================================================================================
  12.  
  13. listMethods:
  14. returnTypes:
  15. 1: STRING
  16. description: List all the methods available
  17. args:
  18.  
  19. ==========================================================================================
  20.  
  21. destroyStack:
  22. returnTypes:
  23. 1: VOID
  24. description: Destroy a stack
  25. args:
  26. 1:
  27. type: NUMBER
  28. description: The slot number, from 1 to the max amount of slots
  29. name: slotNumber
  30.  
  31. ==========================================================================================
  32.  
  33. getMJStored:
  34. returnTypes:
  35. 1: NUMBER
  36. description: Get the MJ stored for this block
  37. args:
  38. 1:
  39. type: STRING
  40. description: The side of the block that you're interested in
  41. name: direction
  42.  
  43. ==========================================================================================
  44.  
  45. getEnergyStored:
  46. returnTypes:
  47. 1: NUMBER
  48. description: Get the energy stored in the machine.
  49. args:
  50. 1:
  51. type: STRING
  52. description: The direction you are interested in. (north, south, east, west, up or down)
  53. name: slot
  54.  
  55. ==========================================================================================
  56.  
  57. pullItemIntoSlot:
  58. returnTypes:
  59. 1: NUMBER
  60. description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  61. args:
  62. 1:
  63. type: STRING
  64. description: The direction of the other inventory. (north, south, east, west, up or down)
  65. name: direction
  66. 2:
  67. type: NUMBER
  68. description: The slot in the OTHER inventory that you're pulling from
  69. name: slot
  70. 3:
  71. optional: true
  72. description: The maximum amount of items you want to pull
  73. type: NUMBER
  74. name: maxAmount
  75. 4:
  76. optional: true
  77. description: The slot in the current inventory that you want to pull into
  78. type: NUMBER
  79. name: intoSlot
  80.  
  81. ==========================================================================================
  82.  
  83. getMaxMJStored:
  84. returnTypes:
  85. 1: NUMBER
  86. description: Get the max MJ stored
  87. args:
  88. 1:
  89. type: STRING
  90. description: The side of the block that you're interested in
  91. name: direction
  92.  
  93. ==========================================================================================
  94.  
  95. condenseItems:
  96. returnTypes:
  97. 1: VOID
  98. description: Condense and tidy the stacks in an inventory
  99. args:
  100.  
  101. ==========================================================================================
  102.  
  103. getInventorySize:
  104. returnTypes:
  105. 1: NUMBER
  106. description: Get the size of this inventory
  107. args:
  108.  
  109. ==========================================================================================
  110.  
  111. getAllStacks:
  112. returnTypes:
  113. 1: TABLE
  114. description: Get a table with all the items of the chest
  115. args:
  116.  
  117. ==========================================================================================
  118.  
  119. getInventoryName:
  120. returnTypes:
  121. 1: STRING
  122. description: Get the name of this inventory
  123. args:
  124.  
  125. ==========================================================================================
  126.  
  127. pushItemIntoSlot:
  128. returnTypes:
  129. 1: NUMBER
  130. description: Push an item from the current inventory into slot on the other one. Returns the amount of items moved
  131. args:
  132. 1:
  133. type: STRING
  134. description: The direction of the other inventory. (north, south, east, west, up or down)
  135. name: direction
  136. 2:
  137. type: NUMBER
  138. description: The slot in the current inventory that you're pushing from
  139. name: slot
  140. 3:
  141. optional: true
  142. description: The maximum amount of items you want to push
  143. type: NUMBER
  144. name: maxAmount
  145. 4:
  146. optional: true
  147. description: The slot in the other inventory that you want to push into
  148. type: NUMBER
  149. name: intoSlot
  150.  
  151. ==========================================================================================
  152.  
  153. pushItem:
  154. returnTypes:
  155. 1: NUMBER
  156. description: Push an item from the current inventory into slot on the other one. Returns the amount of items moved
  157. args:
  158. 1:
  159. type: STRING
  160. description: The direction of the other inventory. (north, south, east, west, up or down)
  161. name: direction
  162. 2:
  163. type: NUMBER
  164. description: The slot in the current inventory that you're pushing from
  165. name: slot
  166. 3:
  167. optional: true
  168. description: The maximum amount of items you want to push
  169. type: NUMBER
  170. name: maxAmount
  171. 4:
  172. optional: true
  173. description: The slot in the other inventory that you want to push into
  174. type: NUMBER
  175. name: intoSlot
  176.  
  177. ==========================================================================================
  178.  
  179. getMinMJReceived:
  180. returnTypes:
  181. 1: NUMBER
  182. description: Get the min MJ received
  183. args:
  184. 1:
  185. type: STRING
  186. description: The side of the block that you're interested in
  187. name: direction
  188.  
  189. ==========================================================================================
  190.  
  191. getStackInSlot:
  192. returnTypes:
  193. 1: TABLE
  194. description: Get details of an item in a particular slot
  195. args:
  196. 1:
  197. type: NUMBER
  198. description: The slot number, from 1 to the max amount of slots
  199. name: slotNumber
  200.  
  201. ==========================================================================================
  202.  
  203. getAdvancedMethodsData:
  204. returnTypes:
  205. 1: TABLE
  206. description: Get a complete table of information about all available methods
  207. args:
  208.  
  209. ==========================================================================================
  210.  
  211. getMaxEnergyStored:
  212. returnTypes:
  213. 1: NUMBER
  214. description: Get the max energy stored in the machine.
  215. args:
  216. 1:
  217. type: STRING
  218. description: The direction you are interested in. (north, south, east, west, up or down)
  219. name: slot
  220.  
  221. ==========================================================================================
  222.  
  223. swapStacks:
  224. returnTypes:
  225. description: Swap two slots in the inventory
  226. args:
  227. 1:
  228. type: NUMBER
  229. description: The first slot
  230. name: from
  231. 2:
  232. type: NUMBER
  233. description: The other slot
  234. name: to
  235. 3:
  236. optional: true
  237. description:
  238. type: STRING
  239. name: fromDirection
  240. 4:
  241. optional: true
  242. description:
  243. type: STRING
  244. name: fromDirection
  245.  
  246. ==========================================================================================
  247.  
  248. pullItem:
  249. returnTypes:
  250. 1: NUMBER
  251. description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  252. args:
  253. 1:
  254. type: STRING
  255. description: The direction of the other inventory. (north, south, east, west, up or down)
  256. name: direction
  257. 2:
  258. type: NUMBER
  259. description: The slot in the OTHER inventory that you're pulling from
  260. name: slot
  261. 3:
  262. optional: true
  263. description: The maximum amount of items you want to pull
  264. type: NUMBER
  265. name: maxAmount
  266. 4:
  267. optional: true
  268. description: The slot in the current inventory that you want to pull into
  269. type: NUMBER
  270. name: intoSlot
  271.  
  272. ==========================================================================================
  273.  
  274. getMaxMJReceived:
  275. returnTypes:
  276. 1: NUMBER
  277. description: Get the max MJ received
  278. args:
  279. 1:
  280. type: STRING
  281. description: The side of the block that you're interested in
  282. name: direction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement