Advertisement
An93l0fD3ath

me_exportbus Methods

Dec 25th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.17 KB | None | 0 0
  1. me_exportbus    3b018285-8ab2-4c87-a8c1-608aebd26cba
  2.   compareStacks                   function(slotA:number, slotB:number):boolean -- Compare the two item stacks in the specified slots for equality.
  3.   condenseItems                   function() -- Condense and tidy the stacks in an inventory
  4.   destroyStack                    function(slotNumber:number) -- Destroy a stack
  5.   doc                             function(method:string):string -- Brief description of method
  6.   expandStack                     function(stack:{id:string,dmg:number?,qty:number?,...}):table -- Get full stack information from id and/or damage
  7.   exportIntoSlot                  function(side:number, slot:number):boolean -- Make the export bus facing the specified direction perform a single export operation into the specified slot.
  8.   getAdvancedMethodsData          function(method:string?):table -- Get a complete table of information about all available methods
  9.   getAllStacks                    function():table -- Get a list of descriptions for all item stacks in this inventory.
  10.   getAvailableItems               function(details:string{NONE,PROXY,ALL}?):table -- Get a list of the stored and craftable items in the network.
  11.   getAvgPowerInjection            function():number -- Get the average power injection into the network
  12.   getAvgPowerUsage                function():number -- Get the average power usage of the network.
  13.   getCraftingCPUs                 function():table -- Get a list of tables representing the available CPUs in the network.
  14.   getEnergyStored                 function([direction:number=6]):number -- Returns the amount of stored energy for the given side.
  15.   getExportConfiguration          function(side:number, [ slot:number]):boolean -- Get the configuration of the export bus pointing in the specified direction.
  16.   getIdlePowerUsage               function():number -- Get the idle power usage of the network.
  17.   getInventoryName                function():string -- Get the name of this inventory.
  18.   getInventorySize                function():number -- Get the number of slots in this inventory.
  19.   getItemDetail                   function(item:{id:string,dmg:number?,nbt_hash:string?},proxy:boolean?):object -- Retrieves details about the specified item from the ME Network.
  20.   getMaxEnergyStored              function([direction:number=6]):number -- Returns the maximum amount of stored energy for the given side.
  21.   getMaxStoredPower               function():number -- Get the maximum stored power in the network.
  22.   getSlotMaxStackSize             function(slot:number):number -- Get the maximum stack size of the item stack in the specified slot.
  23.   getSlotStackSize                function(slot:number):number -- Get the stack size of the item stack in the specified slot.
  24.   getStackInSlot                  function(slot:number):table -- Get a description of the item stack in the specified slot.
  25.   getStoredPower                  function():number -- Get the stored power in the network.
  26.   getTankInfo                     function([side:number=6]):table -- Get some information about the tank accessible from the specified side.
  27.   isEnergyProvider                function():number -- Returns whether this component can provide energy.
  28.   isEnergyReceiver                function():number -- Returns whether this component can receive energy.
  29.   listMethods                     function(filterSource:string?):string -- List all the methods available
  30.   listSources                     function():table -- List all method sources
  31.   pullItem                        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
  32.   pullItemIntoSlot                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
  33.   pushItem                        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
  34.   pushItemIntoSlot                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
  35.   setExportConfiguration          function(side:number[, slot:number][, database:address, entry:number):boolean -- Configure the export bus pointing in the specified direction to export item stacks matching the specified descriptor.
  36.   swapStacks                      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
  37.   transferStack                   function(slotA:number, slotB:number[, count:number=math.huge]):boolean -- Move up to the specified number of items from the first specified slot to the second.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement