Advertisement
Guest User

AdvancedMethods

a guest
Feb 9th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.22 KB | None | 0 0
  1. {
  2.   listMethods = {
  3.     returnTypes = "string",
  4.     args = {
  5.       {
  6.         optional = true,
  7.         description = "",
  8.         type = "openperipheral.adapter.types.SingleArgType@2a54ece1",
  9.         name = "filterSource",
  10.       },
  11.     },
  12.     description = "List all the methods available",
  13.     source = "<meta>",
  14.   },
  15.   listSources = {
  16.     returnTypes = "table",
  17.     args = {},
  18.     description = "List all method sources",
  19.     source = "<meta>",
  20.   },
  21.   destroyStack = {
  22.     returnTypes = "()",
  23.     args = {
  24.       {
  25.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  26.         name = "slotNumber",
  27.         description = "The slot number",
  28.       },
  29.     },
  30.     description = "Destroy a stack",
  31.     source = "inventory",
  32.   },
  33.   pullItemIntoSlot = {
  34.     returnTypes = "number",
  35.     args = {
  36.       {
  37.         type = "openperipheral.adapter.types.BoundedType@46c87119",
  38.         name = "direction",
  39.         description = "The direction of the other inventory",
  40.       },
  41.       {
  42.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  43.         name = "slot",
  44.         description = "The slot in the OTHER inventory that you're pulling from",
  45.       },
  46.       {
  47.         optional = true,
  48.         description = "The maximum amount of items you want to pull",
  49.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  50.         name = "maxAmount",
  51.       },
  52.       {
  53.         optional = true,
  54.         description = "The slot in the current inventory that you want to pull into",
  55.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  56.         name = "intoSlot",
  57.       },
  58.     },
  59.     description = "Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved",
  60.     source = "inventory-world",
  61.   },
  62.   condenseItems = {
  63.     returnTypes = "()",
  64.     args = {},
  65.     description = "Condense and tidy the stacks in an inventory",
  66.     source = "inventory",
  67.   },
  68.   getInventorySize = {
  69.     returnTypes = "number",
  70.     args = {},
  71.     description = "Get the size of this inventory",
  72.     source = "inventory",
  73.   },
  74.   getInfo = {
  75.     returnTypes = "table",
  76.     args = {},
  77.     description = "Returns info containing the capacity of the tank and the FluidStack it holds.",
  78.     source = "fluid_tank",
  79.   },
  80.   getAllStacks = {
  81.     returnTypes = "table",
  82.     args = {
  83.       {
  84.         optional = true,
  85.         description = "If false, method will compute whole table, instead of returning proxy",
  86.         type = "openperipheral.adapter.types.SingleArgType@78544262",
  87.         name = "proxy",
  88.       },
  89.     },
  90.     description = "Get a table with all the items of the chest",
  91.     source = "inventory",
  92.   },
  93.   getInventoryName = {
  94.     returnTypes = "string",
  95.     args = {},
  96.     description = "Get the name of this inventory",
  97.     source = "inventory",
  98.   },
  99.   pushItemIntoSlot = {
  100.     returnTypes = "number",
  101.     args = {
  102.       {
  103.         type = "openperipheral.adapter.types.BoundedType@7049e7d8",
  104.         name = "direction",
  105.         description = "The direction of the other inventory",
  106.       },
  107.       {
  108.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  109.         name = "slot",
  110.         description = "The slot in the current inventory that you're pushing from",
  111.       },
  112.       {
  113.         optional = true,
  114.         description = "The maximum amount of items you want to push",
  115.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  116.         name = "maxAmount",
  117.       },
  118.       {
  119.         optional = true,
  120.         description = "The slot in the other inventory that you want to push into",
  121.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  122.         name = "intoSlot",
  123.       },
  124.     },
  125.     description = "Push an item from the current inventory into slot on the other one. Returns the amount of items moved",
  126.     source = "inventory-world",
  127.   },
  128.   pushItem = {
  129.     returnTypes = "number",
  130.     args = {
  131.       {
  132.         type = "openperipheral.adapter.types.BoundedType@7049e7d8",
  133.         name = "direction",
  134.         description = "The direction of the other inventory",
  135.       },
  136.       {
  137.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  138.         name = "slot",
  139.         description = "The slot in the current inventory that you're pushing from",
  140.       },
  141.       {
  142.         optional = true,
  143.         description = "The maximum amount of items you want to push",
  144.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  145.         name = "maxAmount",
  146.       },
  147.       {
  148.         optional = true,
  149.         description = "The slot in the other inventory that you want to push into",
  150.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  151.         name = "intoSlot",
  152.       },
  153.     },
  154.     description = "Push an item from the current inventory into slot on the other one. Returns the amount of items moved",
  155.     source = "inventory-world",
  156.   },
  157.   getStackInSlot = {
  158.     returnTypes = "object",
  159.     args = {
  160.       {
  161.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  162.         name = "slotNumber",
  163.         description = "Slot number",
  164.       },
  165.       {
  166.         optional = true,
  167.         description = "If true, method will return proxy instead of computing whole table",
  168.         type = "openperipheral.adapter.types.SingleArgType@78544262",
  169.         name = "proxy",
  170.       },
  171.     },
  172.     description = "Get details of an item in a particular slot",
  173.     source = "inventory",
  174.   },
  175.   getAdvancedMethodsData = {
  176.     returnTypes = "table",
  177.     args = {
  178.       {
  179.         optional = true,
  180.         description = "",
  181.         type = "openperipheral.adapter.types.SingleArgType@2a54ece1",
  182.         name = "method",
  183.       },
  184.     },
  185.     description = "Get a complete table of information about all available methods",
  186.     source = "<meta>",
  187.   },
  188.   swapStacks = {
  189.     returnTypes = "()",
  190.     args = {
  191.       {
  192.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  193.         name = "from",
  194.         description = "The first slot",
  195.       },
  196.       {
  197.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  198.         name = "to",
  199.         description = "The other slot",
  200.       },
  201.       {
  202.         optional = true,
  203.         description = "",
  204.         type = "openperipheral.adapter.types.BoundedType@5a053c9c",
  205.         name = "fromDirection",
  206.       },
  207.       {
  208.         optional = true,
  209.         description = "",
  210.         type = "openperipheral.adapter.types.BoundedType@12c6ada4",
  211.         name = "fromDirection",
  212.       },
  213.     },
  214.     description = "Swap two slots in the inventory",
  215.     source = "inventory",
  216.   },
  217.   expandStack = {
  218.     returnTypes = "table",
  219.     args = {
  220.       {
  221.         type = "openperipheral.adapter.types.NamedTupleType@6b013d91",
  222.         name = "stack",
  223.         description = "",
  224.       },
  225.     },
  226.     description = "Get full stack information from id and/or damage",
  227.     source = "inventory",
  228.   },
  229.   pullItem = {
  230.     returnTypes = "number",
  231.     args = {
  232.       {
  233.         type = "openperipheral.adapter.types.BoundedType@46c87119",
  234.         name = "direction",
  235.         description = "The direction of the other inventory",
  236.       },
  237.       {
  238.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  239.         name = "slot",
  240.         description = "The slot in the OTHER inventory that you're pulling from",
  241.       },
  242.       {
  243.         optional = true,
  244.         description = "The maximum amount of items you want to pull",
  245.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  246.         name = "maxAmount",
  247.       },
  248.       {
  249.         optional = true,
  250.         description = "The slot in the current inventory that you want to pull into",
  251.         type = "openperipheral.adapter.types.SingleArgType@27e0a266",
  252.         name = "intoSlot",
  253.       },
  254.     },
  255.     description = "Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved",
  256.     source = "inventory-world",
  257.   },
  258.   doc = {
  259.     returnTypes = "string",
  260.     args = {
  261.       {
  262.         type = "openperipheral.adapter.types.SingleArgType@2a54ece1",
  263.         name = "method",
  264.         description = "",
  265.       },
  266.     },
  267.     description = "Brief description of method",
  268.     source = "<meta>",
  269.   },
  270. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement