Advertisement
Guest User

radar

a guest
Feb 7th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.81 KB | None | 0 0
  1. {
  2.   getAdvancedMethodsData = {
  3.     returnTypes = "table",
  4.     args = {
  5.       {
  6.         optional = true,
  7.         description = "",
  8.         type = "openperipheral.adapter.types.SingleArgType@24e526",
  9.         name = "method",
  10.       },
  11.     },
  12.     description = "Get a complete table of information about all available methods",
  13.     source = "<meta>",
  14.   },
  15.   pullItem = {
  16.     returnTypes = "number",
  17.     args = {
  18.       {
  19.         type = "openperipheral.adapter.types.BoundedType@4323c58c",
  20.         name = "direction",
  21.         description = "The direction of the other inventory",
  22.       },
  23.       {
  24.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  25.         name = "slot",
  26.         description = "The slot in the OTHER inventory that you're pulling from",
  27.       },
  28.       {
  29.         optional = true,
  30.         description = "The maximum amount of items you want to pull",
  31.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  32.         name = "maxAmount",
  33.       },
  34.       {
  35.         optional = true,
  36.         description = "The slot in the current inventory that you want to pull into",
  37.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  38.         name = "intoSlot",
  39.       },
  40.     },
  41.     description = "Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved",
  42.     source = "inventory-world",
  43.   },
  44.   destroyStack = {
  45.     returnTypes = "()",
  46.     args = {
  47.       {
  48.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  49.         name = "slotNumber",
  50.         description = "The slot number",
  51.       },
  52.     },
  53.     description = "Destroy a stack",
  54.     source = "inventory",
  55.   },
  56.   getMaxEnergyStored = {
  57.     returnTypes = "number",
  58.     args = {
  59.       {
  60.         optional = true,
  61.         description = "The direction you are interested in. (north, south, east, west, up or down)",
  62.         type = "openperipheral.adapter.types.BoundedType@4e4275c1",
  63.         name = "side",
  64.       },
  65.     },
  66.     description = "Get the max energy stored in the machine.",
  67.     source = "rf_receiver",
  68.   },
  69.   listMethods = {
  70.     returnTypes = "string",
  71.     args = {
  72.       {
  73.         optional = true,
  74.         description = "",
  75.         type = "openperipheral.adapter.types.SingleArgType@24e526",
  76.         name = "filterSource",
  77.       },
  78.     },
  79.     description = "List all the methods available",
  80.     source = "<meta>",
  81.   },
  82.   getInventorySize = {
  83.     returnTypes = "number",
  84.     args = {},
  85.     description = "Get the size of this inventory",
  86.     source = "inventory",
  87.   },
  88.   pullItemIntoSlot = {
  89.     returnTypes = "number",
  90.     args = {
  91.       {
  92.         type = "openperipheral.adapter.types.BoundedType@4323c58c",
  93.         name = "direction",
  94.         description = "The direction of the other inventory",
  95.       },
  96.       {
  97.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  98.         name = "slot",
  99.         description = "The slot in the OTHER inventory that you're pulling from",
  100.       },
  101.       {
  102.         optional = true,
  103.         description = "The maximum amount of items you want to pull",
  104.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  105.         name = "maxAmount",
  106.       },
  107.       {
  108.         optional = true,
  109.         description = "The slot in the current inventory that you want to pull into",
  110.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  111.         name = "intoSlot",
  112.       },
  113.     },
  114.     description = "Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved",
  115.     source = "inventory-world",
  116.   },
  117.   getMaxEnergyInfo = {
  118.     returnTypes = "number",
  119.     args = {},
  120.     description = "Gets the max Energy of the machine.",
  121.     source = "rf_info",
  122.   },
  123.   doc = {
  124.     returnTypes = "string",
  125.     args = {
  126.       {
  127.         type = "openperipheral.adapter.types.SingleArgType@24e526",
  128.         name = "method",
  129.         description = "",
  130.       },
  131.     },
  132.     description = "Brief description of method",
  133.     source = "<meta>",
  134.   },
  135.   listSources = {
  136.     returnTypes = "table",
  137.     args = {},
  138.     description = "List all method sources",
  139.     source = "<meta>",
  140.   },
  141.   getEUSinkTier = {
  142.     returnTypes = "number",
  143.     args = {},
  144.     description = "Determine the tier of this energy sink (1 = LV, 2 = MV, 3 = HV, 4 = EV)",
  145.     source = "eu_sink",
  146.   },
  147.   getDemandedEnergy = {
  148.     returnTypes = "number",
  149.     args = {},
  150.     description = "Get the maximum safe EU input",
  151.     source = "eu_sink",
  152.   },
  153.   pushItemIntoSlot = {
  154.     returnTypes = "number",
  155.     args = {
  156.       {
  157.         type = "openperipheral.adapter.types.BoundedType@3d97c476",
  158.         name = "direction",
  159.         description = "The direction of the other inventory",
  160.       },
  161.       {
  162.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  163.         name = "slot",
  164.         description = "The slot in the current inventory that you're pushing from",
  165.       },
  166.       {
  167.         optional = true,
  168.         description = "The maximum amount of items you want to push",
  169.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  170.         name = "maxAmount",
  171.       },
  172.       {
  173.         optional = true,
  174.         description = "The slot in the other inventory that you want to push into",
  175.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  176.         name = "intoSlot",
  177.       },
  178.     },
  179.     description = "Push an item from the current inventory into slot on the other one. Returns the amount of items moved",
  180.     source = "inventory-world",
  181.   },
  182.   getStackInSlot = {
  183.     returnTypes = "object",
  184.     args = {
  185.       {
  186.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  187.         name = "slotNumber",
  188.         description = "Slot number",
  189.       },
  190.       {
  191.         optional = true,
  192.         description = "If true, method will return proxy instead of computing whole table",
  193.         type = "openperipheral.adapter.types.SingleArgType@5ecc685a",
  194.         name = "proxy",
  195.       },
  196.     },
  197.     description = "Get details of an item in a particular slot",
  198.     source = "inventory",
  199.   },
  200.   swapStacks = {
  201.     returnTypes = "()",
  202.     args = {
  203.       {
  204.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  205.         name = "from",
  206.         description = "The first slot",
  207.       },
  208.       {
  209.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  210.         name = "to",
  211.         description = "The other slot",
  212.       },
  213.       {
  214.         optional = true,
  215.         description = "",
  216.         type = "openperipheral.adapter.types.BoundedType@3d2e70cb",
  217.         name = "fromDirection",
  218.       },
  219.       {
  220.         optional = true,
  221.         description = "",
  222.         type = "openperipheral.adapter.types.BoundedType@167a7750",
  223.         name = "fromDirection",
  224.       },
  225.     },
  226.     description = "Swap two slots in the inventory",
  227.     source = "inventory",
  228.   },
  229.   condenseItems = {
  230.     returnTypes = "()",
  231.     args = {},
  232.     description = "Condense and tidy the stacks in an inventory",
  233.     source = "inventory",
  234.   },
  235.   getEnergyInfo = {
  236.     returnTypes = "number",
  237.     args = {},
  238.     description = "Gets the stored Energy of the machine.",
  239.     source = "rf_info",
  240.   },
  241.   getMaxEnergyPerTickInfo = {
  242.     returnTypes = "number",
  243.     args = {},
  244.     description = "Gets the max EnergyPerTick of the machine.",
  245.     source = "rf_info",
  246.   },
  247.   getEnergyPerTickInfo = {
  248.     returnTypes = "number",
  249.     args = {},
  250.     description = "Gets the EnergyPerTick of the machine.",
  251.     source = "rf_info",
  252.   },
  253.   getAllStacks = {
  254.     returnTypes = "table",
  255.     args = {
  256.       {
  257.         optional = true,
  258.         description = "If false, method will compute whole table, instead of returning proxy",
  259.         type = "openperipheral.adapter.types.SingleArgType@5ecc685a",
  260.         name = "proxy",
  261.       },
  262.     },
  263.     description = "Get a table with all the items of the chest",
  264.     source = "inventory",
  265.   },
  266.   expandStack = {
  267.     returnTypes = "table",
  268.     args = {
  269.       {
  270.         type = "openperipheral.adapter.types.NamedTupleType@5b7e071e",
  271.         name = "stack",
  272.         description = "",
  273.       },
  274.     },
  275.     description = "Get full stack information from id and/or damage",
  276.     source = "inventory",
  277.   },
  278.   getInventoryName = {
  279.     returnTypes = "string",
  280.     args = {},
  281.     description = "Get the name of this inventory",
  282.     source = "inventory",
  283.   },
  284.   pushItem = {
  285.     returnTypes = "number",
  286.     args = {
  287.       {
  288.         type = "openperipheral.adapter.types.BoundedType@3d97c476",
  289.         name = "direction",
  290.         description = "The direction of the other inventory",
  291.       },
  292.       {
  293.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  294.         name = "slot",
  295.         description = "The slot in the current inventory that you're pushing from",
  296.       },
  297.       {
  298.         optional = true,
  299.         description = "The maximum amount of items you want to push",
  300.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  301.         name = "maxAmount",
  302.       },
  303.       {
  304.         optional = true,
  305.         description = "The slot in the other inventory that you want to push into",
  306.         type = "openperipheral.adapter.types.SingleArgType@452813f8",
  307.         name = "intoSlot",
  308.       },
  309.     },
  310.     description = "Push an item from the current inventory into slot on the other one. Returns the amount of items moved",
  311.     source = "inventory-world",
  312.   },
  313.   getEnergyStored = {
  314.     returnTypes = "number",
  315.     args = {
  316.       {
  317.         optional = true,
  318.         description = "The direction you are interested in. (north, south, east, west, up or down)",
  319.         type = "openperipheral.adapter.types.BoundedType@7d13c25a",
  320.         name = "side",
  321.       },
  322.     },
  323.     description = "Get the energy stored in the machine.",
  324.     source = "rf_receiver",
  325.   },
  326. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement