Advertisement
Machuga14

Computercraft QED Documentation

Nov 26th, 2016
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.56 KB | None | 0 0
  1. Documentation For Method:
  2. getInventorySize
  3. function():number -- Get the size of this inventory
  4.  
  5. Documentation For Method:
  6. getStackInSlot
  7. function(slotNumber:number,proxy:boolean?):object -- Get details of an item in a particular slot
  8.  
  9. Documentation For Method:
  10. getAllStacks
  11. function(proxy:boolean?):table -- Get a table with all the items of the chest
  12.  
  13. Documentation For Method:
  14. listSources
  15. function():table -- List all method sources
  16.  
  17. Documentation For Method:
  18. pullItemIntoSlot
  19. function(direction:string{DOWN,UP,NORTH,SOUTH,WEST,EAST,UNKNOWN},slot:number,maxAmount:number?,intoSlot:number?):number -- Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  20.  
  21. Documentation For Method:
  22. getAdvancedMethodsData
  23. function(method:string?):table -- Get a complete table of information about all available methods
  24.  
  25. Documentation For Method:
  26. swapStacks
  27. function(from:number,to:number,fromDirection:string{DOWN,UP,NORTH,SOUTH,WEST,EAST,UNKNOWN}?,fromDirection:string{DOWN,UP,NORTH,SOUTH,WEST,EAST,UNKNOWN}?) -- Swap two slots in the inventory
  28.  
  29. Documentation For Method:
  30. condenseItems
  31. function() -- Condense and tidy the stacks in an inventory
  32.  
  33. Documentation For Method:
  34. expandStack
  35. function(stack:{id:string,dmg:number?,qty:number?,...}):table -- Get full stack information from id and/or damage
  36.  
  37. Documentation For Method:
  38. getInventoryName
  39. function():string -- Get the name of this inventory
  40.  
  41. Documentation For Method:
  42. listMethods
  43. function(filterSource:string?):string -- List all the methods available
  44.  
  45. Documentation For Method:
  46. destroyStack
  47. function(slotNumber:number) -- Destroy a stack
  48.  
  49. Documentation For Method:
  50. pullItem
  51. function(direction:string{DOWN,UP,NORTH,SOUTH,WEST,EAST,UNKNOWN},slot:number,maxAmount:number?,intoSlot:number?):number -- Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  52.  
  53. Documentation For Method:
  54. doc
  55. function(method:string):string -- Brief description of method
  56.  
  57. Documentation For Method:
  58. pushItem
  59. function(direction:string{DOWN,UP,NORTH,SOUTH,WEST,EAST,UNKNOWN},slot:number,maxAmount:number?,intoSlot:number?):number -- Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved
  60.  
  61. Documentation For Method:
  62. pushItemIntoSlot
  63. function(direction:string{DOWN,UP,NORTH,SOUTH,WEST,EAST,UNKNOWN},slot:number,maxAmount:number?,intoSlot:number?):number -- Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement