Advertisement
dalgrim

Applied Energistics API

Sep 19th, 2015
1,314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.45 KB | None | 0 0
  1. condenseItems
  2. function() -- Condense and tidy the stacks in an inventory
  3.  
  4. expandStack
  5. function(stack:{id:string,dmg:number?,qty:number?,...}):table -- Get full stack information from id and/or damage
  6.  
  7. getStoredPower
  8. function():number -- Get the stored power in the network.
  9.  
  10. exportItem
  11. function(fingerprint:{id:string,dmg:number?,nbt_hash:string?},direction:string{DOWN,UP,NORTH,SOUTH,WEST,EAST,UNKNOWN},maxAmount:number?,intoSlot:number?):table -- Exports the specified item into the target inventory.
  12.  
  13. swapStacks
  14. 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
  15.  
  16. destroyStack
  17. function(slotNumber:number) -- Destroy a stack
  18.  
  19. getAvailableItems
  20. function(details:string{NONE,PROXY,ALL}?):table -- Get a list of the stored and craftable items in the network.
  21.  
  22. pushItemIntoSlot
  23. 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 slot on the other one. Returns the amount of items moved
  24.  
  25. getAdvancedMethodsData
  26. function(method:string?):table -- Get a complete table of information about all available methods
  27.  
  28. getAllStacks
  29. function(proxy:boolean?):table -- Get a table with all the items of the chest
  30.  
  31. pushItem
  32. 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 slot on the other one. Returns the amount of items moved
  33.  
  34. getAvgPowerInjection
  35. function():number -- Get the average power injection into the network
  36.  
  37. getAvgPowerUsage
  38. function():number -- Get the average power usage of the network.
  39.  
  40. canExport
  41. function(direction:string{DOWN,UP,NORTH,SOUTH,WEST,EAST,UNKNOWN}):boolean -- Returns true when the interface can export to side.
  42.  
  43. getInventoryName
  44. function():string -- Get the name of this inventory
  45.  
  46. pullItem
  47. 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
  48.  
  49. getStackInSlot
  50. function(slotNumber:number,proxy:boolean?):object -- Get details of an item in a particular slot
  51.  
  52. listSources
  53. function():table -- List all method sources
  54.  
  55. getCraftingCPUs
  56. function():table -- Get a list of tables representing the available CPUs in the network.
  57.  
  58. getIdlePowerUsage
  59. function():number -- Get the idle power usage of the network.
  60.  
  61. getMaxStoredPower
  62. function():number -- Get the maximum stored power in the network.
  63.  
  64. getInventorySize
  65. function():number -- Get the size of this inventory
  66.  
  67. requestCrafting
  68. function(fingerprint:{id:string,dmg:number?,nbt_hash:string?},qty:number?,cpu:string?) -- Requests the specified item to get crafted.
  69.  
  70. getItemDetail
  71. function(item:{id:string,dmg:number?,nbt_hash:string?},proxy:boolean?):object -- Retrieves details about the specified item from the ME Network.
  72.  
  73. pullItemIntoSlot
  74. 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
  75.  
  76. listMethods
  77. function(filterSource:string?):string -- List all the methods available
  78.  
  79. doc
  80. function(method:string):string -- Brief description of method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement