DemonicArcher

Peripherals

Dec 15th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.67 KB | None | 0 0
  1.  
  2. listMethods()
  3.  
  4. returnTypes
  5. 1
  6. String
  7.  
  8. description
  9. List all the methods available
  10.  
  11. args
  12. none
  13.  
  14.  
  15.  
  16. destroyStack() -- .destroyStack(1)
  17.  
  18. returnTypes
  19. 1
  20. VOID
  21.  
  22. description
  23. Destroy a stack
  24.  
  25. args
  26. 1
  27. name
  28. slotNumber
  29. optional
  30. false
  31. type
  32. NUMBER
  33. description
  34. The slot number, from 1 to the max amount of slots
  35. nullable
  36. false
  37. vararg
  38. false
  39.  
  40.  
  41. pullItemIntoSlot() -- .pullItemIntoSlot("north",1,64,1)
  42.  
  43. returnTypes
  44. 1
  45. NUMBER
  46.  
  47. description
  48. Pull an item from a slot in another inventory into a slot in this one. Returns the amount
  49. of items moved
  50.  
  51. args
  52. 1
  53. name
  54. direction
  55. optional
  56. false
  57. type
  58. String
  59. desctiption
  60. The direction of the other invetory. (north, east, south, west, up, down)
  61. nullable
  62. false
  63. vararg
  64. false
  65. 2
  66. name
  67. slot
  68. optional
  69. false
  70. type
  71. NUMBER
  72. desctiption
  73. The slot in the OTHER invetory you are pulling from.
  74. nullable
  75. false
  76. vararg
  77. false
  78. 3
  79. name
  80. maxamount
  81. optional
  82. true
  83. type
  84. Number
  85. desctiption
  86. The Maximum amount of items you want to pull
  87. nullable
  88. true
  89. vararg
  90. false
  91. 4
  92. name
  93. intoSlot
  94. optional
  95. true
  96. type
  97. NUMBER
  98. desctiption
  99. The slot in the current inventory that you want to pull into
  100. nullable
  101. true
  102. vararg
  103. false
  104.  
  105.  
  106.  
  107.  
  108. getOwnerName() -- .getOwnerName()
  109.  
  110. returnTypes
  111. 1
  112. STRING
  113.  
  114. description
  115. Gets the owner of the machine.
  116.  
  117. arg
  118. none
  119.  
  120.  
  121. condenseItems() -- .condenseItems()
  122.  
  123. returnTypes
  124. 1
  125. Void
  126.  
  127. description
  128. Condense and tidy stacks in the inventory
  129.  
  130. args
  131. none
  132.  
  133.  
  134.  
  135. setAccess() -- .setAccess("PUBLIC")
  136.  
  137. returnTypes
  138. 1
  139. BOOLEAN
  140.  
  141. description
  142. Sets the AccessMode of this Machine.
  143.  
  144. args
  145. 1
  146. name
  147. accessMode
  148. optional
  149. false
  150. type
  151. STRING
  152. description
  153. The access mode you with to set (can be PUBLIC, RESTRICTED, or PRIVATE)
  154. nullable
  155. false
  156. vararg
  157. false
  158.  
  159.  
  160.  
  161. canPlayerAccess() -- .canPlayerAccess("DemonicArcher")
  162.  
  163. returTypes
  164. 1
  165. BOOLEAN
  166.  
  167. description
  168. Is this username allowed to access the machine
  169.  
  170. args
  171. 1
  172. name
  173. username
  174. optional
  175. false
  176. type
  177. STRING
  178. description
  179. The username to check for
  180. nullable
  181. false
  182. vararg
  183. false
  184.  
  185.  
  186. getInventorySize() -- .getInventorySize()
  187.  
  188. returntype
  189. 1
  190. NUMBER
  191.  
  192. description
  193. Get the size of this inventory
  194.  
  195. args
  196. none
  197.  
  198.  
  199. getAllStacks() -- .getAllStacks()
  200.  
  201. returnType
  202. 1
  203. TABLE
  204.  
  205. description
  206. Get a table with all the items of the chest
  207.  
  208.  
  209.  
  210.  
  211. getInventoryName() -- .getInventoryName()
  212.  
  213. returnType
  214. 1
  215. STRING
  216.  
  217. description
  218. Get the name of this inventory
  219.  
  220. args
  221. none
  222.  
  223.  
  224. pushItemIntoSlot() -- .pushItemIntoSlot("north",1,64,1)
  225.  
  226. returnType
  227. 1
  228. NUMBER
  229.  
  230. description
  231. Push an item from the current inventory into slot on the other one. Returns the amount
  232. of items moved
  233.  
  234. args
  235. 1
  236. name
  237. direction
  238. optional
  239. false
  240. type
  241. STRING
  242. description
  243. The direction of the other inventory. (north, south, east, west, up, down)
  244. nullable
  245. false
  246. vararg
  247. false
  248.  
  249. 2
  250. name
  251. slot
  252. optional
  253. false
  254. type
  255. NUMBER
  256. description
  257. The slot in the current inventory that you're pushing from
  258. nullable
  259. false
  260. vararg
  261. false
  262.  
  263. 3
  264. name
  265. maxAmount
  266. optional
  267. true
  268. type
  269. NUMBER
  270. description
  271. The maximum amount of items you want to push
  272. nullable
  273. true
  274. vararg
  275. false
  276.  
  277. 4
  278. name
  279. intoSlot
  280. optional
  281. true
  282. type
  283. NUMBER
  284. description
  285. The slot in the OTHER inventory that you want to push into
  286. nullable
  287. true
  288. vararg
  289. false
  290.  
  291.  
  292. getAdvancedMethodsData() -- .getAdvancedMethodsData()
  293.  
  294. returnType
  295. Table
  296.  
  297. description
  298. Get a complete table of information about all available methods
  299.  
  300. args
  301. none
  302.  
  303.  
  304. swapStacks()
  305.  
  306. returnType
  307. none
  308.  
  309. description
  310. Swap two slots in the inventory
  311.  
  312. args
  313. 1
  314. name
  315. from
  316. optional
  317. false
  318. type
  319. Number
  320. description
  321. The first slot
  322. nullable
  323. false
  324. vararg
  325. false
  326.  
  327. 2
  328. name
  329. to
  330. optional
  331. false
  332. type
  333. NUMBER
  334. description
  335. The other slot
  336. nullable
  337. false
  338. vararg
  339. false
  340.  
  341. 3
  342. name
  343. fromDirection
  344. optional
  345. true
  346. type
  347. STRING
  348. description
  349.  
  350. nullable
  351. true
  352. vararg
  353. false
  354.  
  355. 4
  356. name
  357. fromDirection
  358. optional
  359. true
  360. type
  361. STRING
  362. description
  363.  
  364. nullable
  365. true
  366. vararg
  367. false
  368.  
  369.  
  370. getAccess()
  371.  
  372. returnType
  373. STRING
  374.  
  375. desription
  376. Gets the AccessMode of this machine
  377.  
  378. args
  379. none
  380.  
  381.  
  382.  
  383. pullItem()
  384.  
  385. returnType
  386. 1
  387. NUMBER
  388.  
  389. description
  390. Pull an item froma slot in another inventory int a slot in this one. Returns the amount
  391. of items moved
  392.  
  393. args
  394. 1
  395. name
  396. direction
  397. optional
  398. false
  399. type
  400. STRING
  401. description
  402. The directions of the other inventory
  403. nullable
  404. false
  405. vararg
  406. false
  407. 2
  408. name
  409. slot
  410. optional
  411. false
  412. type
  413. NUMBER
  414. description
  415. The slot int the OTHER invetory that you're pulling from
  416. nullable
  417. false
  418. vararg
  419. false
  420. 3
  421. name
  422. maxAmount
  423. optional
  424. true
  425. type
  426. NUMBER
  427. description
  428. The maximum amount of items you want to pull
  429. nullable
  430. true
  431. vararg
  432. galse
  433. 4
  434. name
  435. intoSlot
  436. optional
  437. true
  438. type
  439. NUMBER
  440. description
  441. The slot in the current inventory that you want to pull into
  442. nullable
  443. true
  444. vararg
  445. false
Advertisement
Add Comment
Please, Sign In to add comment