Advertisement
Guest User

gasburn

a guest
Oct 1st, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.24 KB | None | 0 0
  1. pullItem:
  2. 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
  3.  
  4. isEnergyProvider:
  5. function():number -- Returns whether this component can provide energy.
  6.  
  7. pushItemIntoSlot:
  8. 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
  9.  
  10. expandStack:
  11. function(stack:{id:string,dmg:number?,qty:number?,...}):table -- Get full stack information from id and/or damage
  12.  
  13. listMethods:
  14. function(filterSource:string?):string -- List all the methods available
  15.  
  16. listSources:
  17. function():table -- List all method sources
  18.  
  19. getOfferedEnergy:
  20. function
  21.  
  22. getInventoryName:
  23. function():string -- Get the name of this inventory
  24.  
  25. isEnergyReceiver:
  26. function():number -- Returns whether this component can receive energy.
  27.  
  28. getEnergy:
  29. function
  30.  
  31. getMaxEnergyStored:
  32. function():number;  Returns the maximum amount of stored energy.
  33.  
  34. doc:
  35. function(method:string):string -- Brief description of method
  36.  
  37. getStackInSlot:
  38. function(slotNumber:number,proxy:boolean?):object -- Get details of an item in a particular slot
  39.  
  40. getGasNeeded:
  41. function
  42.  
  43. getAdvancedMethodsData:
  44. function(method:string?):table -- Get a complete table of information about all available methods
  45.  
  46. getAllStacks:
  47. function(proxy:boolean?):table -- Get a table with all the items of the chest
  48.  
  49. getEUSinkTier:
  50. function():number -- Determine the tier of this energy sink (1 = LV, 2 = MV, 3 = HV, 4 = EV)
  51.  
  52. getEUStored:
  53. function():number -- Get how much EU is stored in this block
  54.  
  55. destroyStack:
  56. function(slotNumber:number) -- Destroy a stack
  57.  
  58. getEUOutputPerTick:
  59. function():number -- Get the EU output per tick
  60.  
  61. getOutput:
  62. function
  63.  
  64. getEnergyStored:
  65. function():number;  Returns the total amount of stored energy.
  66.  
  67. getStored:
  68. function
  69.  
  70. pushItem:
  71. 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
  72.  
  73. type:
  74. gas_burning_generator
  75.  
  76. getEUSourceTier:
  77. function():number -- Determine the tier of this energy source (1 = LV, 2 = MV, 3 = HV, 4 = EV)
  78.  
  79. swapStacks:
  80. 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
  81.  
  82. getDemandedEnergy:
  83. function():number -- Get the maximum safe EU input
  84.  
  85. getMaxEnergy:
  86. function
  87.  
  88. getGas:
  89. function
  90.  
  91. getEUCapacity:
  92. function():number -- Get the EU capacity of this block
  93.  
  94. condenseItems:
  95. function() -- Condense and tidy the stacks in an inventory
  96.  
  97. getInventorySize:
  98. function():number -- Get the size of this inventory
  99.  
  100. slot:
  101. -1
  102.  
  103. pullItemIntoSlot:
  104. 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
  105.  
  106. getCapacity:
  107. function
  108.  
  109. getEnergyNeeded:
  110. function
  111.  
  112. getSinkTier:
  113. function
  114.  
  115. address:
  116. 9b4712c5-561d-492a-81e0-87ce44b9cc33
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement