Advertisement
Guest User

info

a guest
Dec 16th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.10 KB | None | 0 0
  1. Basic list of methods provided by peripheral.getMethods():
  2.     1. condenseItems
  3.     2. expandStack
  4.     3. getBeeChildren
  5.     4. getDemandedEnergy
  6.     5. breedingProgress
  7.     6. destroyStack
  8.     7. swapStacks
  9.     8. pushItemIntoSlot
  10.     9. getEUSinkTier
  11.    10. getAdvancedMethodsData
  12.    11. canBreed
  13.    12. getMaxEnergyStored
  14.    13. listAllSpecies
  15.    14. getAllStacks
  16.    15. pushItem
  17.    16. getInventoryName
  18.    17. pullItem
  19.    18. getEnergyStored
  20.    19. getStackInSlot
  21.    20. listSources
  22.    21. getBeeBreedingData
  23.    22. getInventorySize
  24.    23. getDrone
  25.    24. getQueen
  26.    25. pullItemIntoSlot
  27.    26. doc
  28.    27. listMethods
  29.    28. getBeeParents
  30.  
  31. 1. condenseItems
  32.  
  33. Return Type: ()
  34. Description: Condense and tidy the stacks in an inventory
  35.  
  36.   Arguments:
  37.  
  38. 2. expandStack
  39.  
  40. Return Type: table
  41. Description: Get full stack information from id and/or damage
  42.  
  43.   Arguments:
  44.  
  45.   1. stack
  46.   Description:
  47.   Type: openperipheral.adapter.types.NamedTupleType@4d92c4d9
  48.  
  49. 3. getBeeChildren
  50.  
  51. Return Type: table
  52. Description: Get possible mutations that can be created with given bee
  53.  
  54.   Arguments:
  55.  
  56.   1. parentYpe
  57.   Description: The type of bee you want the children for
  58.   Type: openperipheral.adapter.types.SingleArgType@4f666d17
  59.  
  60. 4. getDemandedEnergy
  61.  
  62. Return Type: number
  63. Description: Get the maximum safe EU input
  64.  
  65.   Arguments:
  66.  
  67. 5. breedingProgress
  68.  
  69. Return Type: number
  70. Description: Breeding progress (in %)
  71.  
  72.   Arguments:
  73.  
  74. 6. destroyStack
  75.  
  76. Return Type: ()
  77. Description: Destroy a stack
  78.  
  79.   Arguments:
  80.  
  81.   1. slotNumber
  82.   Description: The slot number
  83.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  84.  
  85. 7. swapStacks
  86.  
  87. Return Type: ()
  88. Description: Swap two slots in the inventory
  89.  
  90.   Arguments:
  91.  
  92.   1. from
  93.   Description: The first slot
  94.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  95.  
  96.   2. to
  97.   Description: The other slot
  98.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  99.  
  100.   3. fromDirection
  101.   Description:
  102.   Type: openperipheral.adapter.types.BoundedType@572cf544
  103.  
  104.   4. fromDirection
  105.   Description:
  106.   Type: openperipheral.adapter.types.BoundedType@f1caff2
  107.  
  108. 8. pushItemIntoSlot
  109.  
  110. Return Type: number
  111. Description: Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved
  112.  
  113.   Arguments:
  114.  
  115.   1. direction
  116.   Description: The direction of the other inventory
  117.   Type: openperipheral.adapter.types.BoundedType@6a342215
  118.  
  119.   2. slot
  120.   Description: The slot in the current inventory that you're pushing from
  121.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  122.  
  123.  3. maxAmount
  124.  Description: The maximum amount of items you want to push
  125.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  126.  
  127.  4. intoSlot
  128.  Description: The slot in the other inventory that you want to push into (ignored when target is pipe
  129.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  130.  
  131. 9. getEUSinkTier
  132.  
  133. Return Type: number
  134. Description: Determine the tier of this energy sink (1 = LV, 2 = MV, 3 = HV, 4 = EV)
  135.  
  136.  Arguments:
  137.  
  138. 10. getAdvancedMethodsData
  139.  
  140. Return Type: table
  141. Description: Get a complete table of information about all available methods
  142.  
  143.  Arguments:
  144.  
  145.  1. method
  146.  Description:
  147.  Type: openperipheral.adapter.types.SingleArgType@4f666d17
  148.  
  149. 11. canBreed
  150.  
  151. Return Type: boolean
  152. Description: Can the bees breed?
  153.  
  154.  Arguments:
  155.  
  156. 12. getMaxEnergyStored
  157.  
  158. Return Type: number
  159. Description: Get the max energy stored in the machine.
  160.  
  161.  Arguments:
  162.  
  163.  1. side
  164.  Description: The direction you are interested in. (north, south, east, west, up or down)
  165.  Type: openperipheral.adapter.types.BoundedType@503a2d8c
  166.  
  167. 13. listAllSpecies
  168.  
  169. Return Type: table
  170. Description: Get all known bees species
  171.  
  172.  Arguments:
  173.  
  174. 14. getAllStacks
  175.  
  176. Return Type: table
  177. Description: Get a table with all the items of the chest
  178.  
  179.  Arguments:
  180.  
  181.  1. proxy
  182.  Description: If false, method will compute whole table, instead of returning proxy
  183.  Type: openperipheral.adapter.types.SingleArgType@6290c1a8
  184.  
  185. 15. pushItem
  186.  
  187. Return Type: number
  188. Description: Push an item from the current inventory into pipe or slot on the other inventory. Returns the amount of items moved
  189.  
  190.  Arguments:
  191.  
  192.  1. direction
  193.  Description: The direction of the other inventory
  194.  Type: openperipheral.adapter.types.BoundedType@6a342215
  195.  
  196.  2. slot
  197.  Description: The slot in the current inventory that you're pushing from
  198.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  199.  
  200.   3. maxAmount
  201.   Description: The maximum amount of items you want to push
  202.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  203.  
  204.   4. intoSlot
  205.   Description: The slot in the other inventory that you want to push into (ignored when target is pipe
  206.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  207.  
  208. 16. getInventoryName
  209.  
  210. Return Type: string
  211. Description: Get the name of this inventory
  212.  
  213.   Arguments:
  214.  
  215. 17. pullItem
  216.  
  217. Return Type: number
  218. Description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  219.  
  220.   Arguments:
  221.  
  222.   1. direction
  223.   Description: The direction of the other inventory
  224.   Type: openperipheral.adapter.types.BoundedType@4c2ad461
  225.  
  226.   2. slot
  227.   Description: The slot in the OTHER inventory that you're pulling from
  228.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  229.  
  230.  3. maxAmount
  231.  Description: The maximum amount of items you want to pull
  232.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  233.  
  234.  4. intoSlot
  235.  Description: The slot in the current inventory that you want to pull into
  236.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  237.  
  238. 18. getEnergyStored
  239.  
  240. Return Type: number
  241. Description: Get the energy stored in the machine.
  242.  
  243.  Arguments:
  244.  
  245.  1. side
  246.  Description: The direction you are interested in. (north, south, east, west, up or down)
  247.  Type: openperipheral.adapter.types.BoundedType@468e40a6
  248.  
  249. 19. getStackInSlot
  250.  
  251. Return Type: object
  252. Description: Get details of an item in a particular slot
  253.  
  254.  Arguments:
  255.  
  256.  1. slotNumber
  257.  Description: Slot number
  258.  Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  259.  
  260.  2. proxy
  261.  Description: If true, method will return proxy instead of computing whole table
  262.  Type: openperipheral.adapter.types.SingleArgType@6290c1a8
  263.  
  264. 20. listSources
  265.  
  266. Return Type: table
  267. Description: List all method sources
  268.  
  269.  Arguments:
  270.  
  271. 21. getBeeBreedingData
  272.  
  273. Return Type: table
  274. Description: Get the full breeding list thingy. Experimental!
  275.  
  276.  Arguments:
  277.  
  278. 22. getInventorySize
  279.  
  280. Return Type: number
  281. Description: Get the size of this inventory
  282.  
  283.  Arguments:
  284.  
  285. 23. getDrone
  286.  
  287. Return Type: table
  288. Description: Get the drone
  289.  
  290.  Arguments:
  291.  
  292. 24. getQueen
  293.  
  294. Return Type: table
  295. Description: Get the queen
  296.  
  297.  Arguments:
  298.  
  299. 25. pullItemIntoSlot
  300.  
  301. Return Type: number
  302. Description: Pull an item from a slot in another inventory into a slot in this one. Returns the amount of items moved
  303.  
  304.  Arguments:
  305.  
  306.  1. direction
  307.  Description: The direction of the other inventory
  308.  Type: openperipheral.adapter.types.BoundedType@4c2ad461
  309.  
  310.  2. slot
  311.  Description: The slot in the OTHER inventory that you're pulling from
  312.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  313.  
  314.   3. maxAmount
  315.   Description: The maximum amount of items you want to pull
  316.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  317.  
  318.   4. intoSlot
  319.   Description: The slot in the current inventory that you want to pull into
  320.   Type: openperipheral.adapter.types.SingleArgType@54dffb3f
  321.  
  322. 26. doc
  323.  
  324. Return Type: string
  325. Description: Brief description of method
  326.  
  327.   Arguments:
  328.  
  329.   1. method
  330.   Description:
  331.   Type: openperipheral.adapter.types.SingleArgType@4f666d17
  332.  
  333. 27. listMethods
  334.  
  335. Return Type: string
  336. Description: List all the methods available
  337.  
  338.   Arguments:
  339.  
  340.   1. filterSource
  341.   Description:
  342.   Type: openperipheral.adapter.types.SingleArgType@4f666d17
  343.  
  344. 28. getBeeParents
  345.  
  346. Return Type: table
  347. Description: Get possible mutations that results in given bee
  348.  
  349.   Arguments:
  350.  
  351.   1. childType
  352.   Description: The type of bee you want the parents for
  353.   Type: openperipheral.adapter.types.SingleArgType@4f666d17
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement