Advertisement
Guest User

ME Interface API, ComputerCraft (OpenPeripherals)

a guest
Aug 20th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.48 KB | None | 0 0
  1. canExport(direction),
  2. condenseItems(),
  3. destroyStack(slotNumber),
  4. doc(method),
  5. expandStack(stack),
  6. exportItem(fingerprint,direction,maxAmount?,intoSlot?),
  7. getAdvancedMethodsData(method?),
  8. getAllStacks(proxy?),
  9. getAvailableItems(details?),
  10. getAvgPowerInjection(),
  11. getAvgPowerUsage(),
  12. getCraftingCPUs(),
  13. getIdlePowerUsage(),
  14. getInventoryName(),
  15. getInventorySize(),
  16. getItemDetail(item,proxy?),
  17. getMaxStoredPower(),
  18. getStackInSlot(slotNumber,proxy?),
  19. getStoredPower(),
  20. listMethods(filterSource?),
  21. listSources(),
  22. pullItem(direction,slot,maxAmount?,intoSlot?),
  23. pullItemIntoSlot(direction,slot,maxAmount?,intoSlot?),
  24. pushItem(direction,slot,maxAmount?,intoSlot?),
  25. pushItemIntoSlot(direction,slot,maxAmount?,intoSlot?),
  26. requestCrafting(fingerprint,qty?,cpu?),
  27. swapStacks(from,to,fromDirection?,fromDirection?){condenseItems={args={}, returnTypes=(), description=Condense and tidy the stacks in an inventory, source=inventory},
  28. expandStack={args={1.0={name=stack,description=,type=openperipheral.adapter.types.NamedTupleType@5359d408}},returnTypes=table,description=Get full stack information from id and/or damage,source=inventory},
  29. getStoredPower={args={},returnTypes=number,description=Get the stored power in the network.,source=me_network},
  30. exportItem={args={1.0={name=fingerprint,description=Details of the item you want to export (can be result of .getStackInSlot() or .getAvailableItems()),type=openperipheral.integration.vanilla.ModuleVanilla$1@7856e8ae},
  31. 2.0={name=direction,description=Location of target inventory,type=openperipheral.adapter.types.BoundedType@24398ba8},
  32. 4.0={name=intoSlot,description=The slot in the other inventory that you want to export into,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  33. 3.0={name=maxAmount,description=The maximum amount of items you want to export,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7}},returnTypes=table,description=Exports the specified item into the target inventory.,source=me_interface},
  34. destroyStack={args={1.0={name=slotNumber,description=The slot number,type=openperipheral.adapter.types.SingleArgType@44f5dc7}},returnTypes=(),description=Destroy a stack,source=inventory},
  35. swapStacks={args={1.0={name=from,description=The first slot,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  36. 2.0={name=to,description=The other slot,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  37. 4.0={name=fromDirection,description=,optional=true,type=openperipheral.adapter.types.BoundedType@3a402462},
  38. 3.0={name=fromDirection,description=,optional=true,type=openperipheral.adapter.types.BoundedType@52cc8158}},returnTypes=(),description=Swap two slots in the inventory,source=inventory},
  39. getAdvancedMethodsData={args={1.0={name=method,description=,optional=true,type=openperipheral.adapter.types.SingleArgType@27d5471e}},returnTypes=table,description=Get a complete table of information about all available methods,source=<meta>},
  40. pushItemIntoSlot={args={1.0={name=direction,description=The direction of the other inventory,type=openperipheral.adapter.types.BoundedType@6ffa0b7e},
  41. 2.0={name=slot,description=The slot in the current inventory that you're pushing from,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  42. 4.0={name=intoSlot,description=The slot in the other inventory that you want to push into (ignored when target is pipe,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  43. 3.0={name=maxAmount,description=The maximum amount of items you want to push,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7}},returnTypes=number,description=Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved,source=inventory-world},
  44. getAvailableItems={args={1.0={name=details,description=Format of stored items details (defalt: none),optional=true,type=openperipheral.adapter.types.BoundedType@1125d223}},returnTypes=table,description=Get a list of the stored and craftable items in the network.,source=me_network},
  45. getAllStacks={args={1.0={name=proxy,description=If false,method will compute whole table,instead of returning proxy,optional=true,type=openperipheral.adapter.types.SingleArgType@1c0d04b2}},returnTypes=table,description=Get a table with all the items of the chest,source=inventory},
  46. pushItem={args={1.0={name=direction,description=The direction of the other inventory,type=openperipheral.adapter.types.BoundedType@6ffa0b7e},
  47. 2.0={name=slot,description=The slot in the current inventory that you're pushing from,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  48. 4.0={name=intoSlot,description=The slot in the other inventory that you want to push into (ignored when target is pipe,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  49. 3.0={name=maxAmount,description=The maximum amount of items you want to push,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7}},returnTypes=number,description=Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved,source=inventory-world},
  50. getAvgPowerInjection={args={},returnTypes=number,description=Get the average power injection into the network,source=me_network},
  51. getAvgPowerUsage={args={},returnTypes=number,description=Get the average power usage of the network.,source=me_network},
  52. canExport={args={1.0={name=direction,description=Location of target inventory,type=openperipheral.adapter.types.BoundedType@23935db6}},returnTypes=boolean,description=Returns true when the interface can export to side.,source=me_interface},
  53. getInventoryName={args={},returnTypes=string,description=Get the name of this inventory,source=inventory},
  54. pullItem={args={1.0={name=direction,description=The direction of the other inventory,type=openperipheral.adapter.types.BoundedType@1c98272d},
  55. 2.0={name=slot,description=The slot in the OTHER inventory that you're pulling from,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  56. 4.0={name=intoSlot,description=The slot in the current inventory that you want to pull into,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  57. 3.0={name=maxAmount,description=The maximum amount of items you want to pull,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7}},returnTypes=number,description=Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved,source=inventory-world},
  58. getStackInSlot={args={1.0={name=slotNumber,description=Slot number,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  59. 2.0={name=proxy,description=If true,method will return proxy instead of computing whole table,optional=true,type=openperipheral.adapter.types.SingleArgType@1c0d04b2}},returnTypes=object,description=Get details of an item in a particular slot,source=inventory},
  60. listSources={args={},returnTypes=table,description=List all method sources,source=<meta>},
  61. getCraftingCPUs={args={},returnTypes=table,description=Get a list of tables representing the available CPUs in the network.,source=me_network},
  62. getIdlePowerUsage={args={},returnTypes=number,description=Get the idle power usage of the network.,source=me_network},
  63. getMaxStoredPower={args={},returnTypes=number,description=Get the maximum stored power in the network.,source=me_network},
  64. requestCrafting={args={1.0={name=fingerprint,description=Details of the item you want to craft. Can be found with .getStackInSlot on inventory and .getAvailableItems on AE network,type=openperipheral.integration.vanilla.ModuleVanilla$1@7856e8ae},
  65. 2.0={name=qty,description=The quantity of items you want to craft,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  66. 3.0={name=cpu,description=The name of the CPU you want to use,optional=true,type=openperipheral.adapter.types.SingleArgType@27d5471e}},returnTypes=(),description=Requests the specified item to get crafted.,source=me_interface},
  67. getInventorySize={args={},returnTypes=number,description=Get the size of this inventory,source=inventory},
  68. getItemDetail={args={1.0={name=item,description=Details of the item you are looking for,type=openperipheral.integration.vanilla.ModuleVanilla$1@7856e8ae},
  69. 2.0={name=proxy,description=If false,method will compute whole table,instead of returning proxy,optional=true,type=openperipheral.adapter.types.SingleArgType@1c0d04b2}},returnTypes=object,description=Retrieves details about the specified item from the ME Network.,source=me_network},
  70. listMethods={args={1.0={name=filterSource,description=,optional=true,type=openperipheral.adapter.types.SingleArgType@27d5471e}},returnTypes=string,description=List all the methods available,source=<meta>},
  71. pullItemIntoSlot={args={1.0={name=direction,description=The direction of the other inventory,type=openperipheral.adapter.types.BoundedType@1c98272d},
  72. 2.0={name=slot,description=The slot in the OTHER inventory that you're pulling from,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  73. 4.0={name=intoSlot,description=The slot in the current inventory that you want to pull into,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7},
  74. 3.0={name=maxAmount,description=The maximum amount of items you want to pull,optional=true,type=openperipheral.adapter.types.SingleArgType@44f5dc7}},returnTypes=number,description=Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved,source=inventory-world},
  75. doc={args={1.0={name=method,description=,type=openperipheral.adapter.types.SingleArgType@27d5471e}},returnTypes=string,description=Brief description of method,source=<meta>}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement