Advertisement
Guest User

peripheral_doc.tmp

a guest
Apr 19th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.96 KB | None | 0 0
  1. >> Метод: getAdvancedMethodsData
  2. Документация: function(method:string?):table -- Get a complete table of information about all available methods
  3. >> Метод: pushItem
  4. Документация: 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 pipe or slot on the other inventory. Returns the amount of items moved
  5. >> Метод: getMaxEnergyStored
  6. Документация: function([direction:number=6]):number -- Returns the maximum amount of stored energy for the given side.
  7. >> Метод: destroyStack
  8. Документация: function(slotNumber:number) -- Destroy a stack
  9. >> Метод: getTankInfo
  10. Документация: function(direction:string{DOWN,UP,NORTH,SOUTH,WEST,EAST,UNKNOWN}?):table -- A table of tanks will be returned, each with a table of information
  11. >> Метод: doc
  12. Документация: function(method:string):string -- Brief description of method
  13. >> Метод: getDemandedEnergy
  14. Документация: function():number -- Get the maximum safe EU input
  15. >> Метод: pullItemIntoSlot
  16. Документация: 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
  17. >> Метод: getStackInSlot
  18. Документация: function(slotNumber:number,proxy:boolean?):object -- Get details of an item in a particular slot
  19. >> Метод: isEnergyReceiver
  20. Документация: function():number -- Returns whether this component can receive energy.
  21. >> Метод: listMethods
  22. Документация: function(filterSource:string?):string -- List all the methods available
  23. >> Метод: condenseItems
  24. Документация: function() -- Condense and tidy the stacks in an inventory
  25. >> Метод: swapStacks
  26. Документация: 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
  27. >> Метод: listSources
  28. Документация: function():table -- List all method sources
  29. >> Метод: getEnergyStored
  30. Документация: function([direction:number=6]):number -- Returns the amount of stored energy for the given side.
  31. >> Метод: getInventoryName
  32. Документация: function():string -- Get the name of this inventory
  33. >> Метод: getInventorySize
  34. Документация: function():number -- Get the size of this inventory
  35. >> Метод: pullItem
  36. Документация: 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
  37. >> Метод: getAllStacks
  38. Документация: function(proxy:boolean?):table -- Get a table with all the items of the chest
  39. >> Метод: slot
  40. Документация: -1
  41. >> Метод: getSinkTier
  42. Документация: function
  43. >> Метод: isEnergyProvider
  44. Документация: function():number -- Returns whether this component can provide energy.
  45. >> Метод: getEUSinkTier
  46. Документация: function():number -- Determine the tier of this energy sink (1 = LV, 2 = MV, 3 = HV, 4 = EV)
  47. >> Метод: type
  48. Документация: peripheral
  49. >> Метод: pushItemIntoSlot
  50. Документация: 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 pipe or slot on the other inventory. Returns the amount of items moved
  51. >> Метод: address
  52. Документация: c8d5e2dd-2394-4abf-a7f1-408fec715e9b
  53. >> Метод: expandStack
  54. Документация: function(stack:{id:string,dmg:number?,qty:number?,...}):table -- Get full stack information from id and/or damage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement