Advertisement
An93l0fD3ath

me_controller Methods

Dec 25th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.26 KB | None | 0 0
  1. me_controller   e435ee3b-311a-4a84-8e21-f9696673253c
  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.   getAdvancedMethodsData          function(method:string?):table -- Get a complete table of information about all available methods
  8.   getAllStacks                    function():table -- Get a list of descriptions for all item stacks in this inventory.
  9.   getAvailableItems               function(details:string{NONE,PROXY,ALL}?):table -- Get a list of the stored and craftable items in the network.
  10.   getAvgPowerInjection            function():number -- Get the average power injection into the network.
  11.   getAvgPowerUsage                function():number -- Get the average power usage of the network.
  12.   getCpus                         function():table -- Get a list of tables representing the available CPUs in the network.
  13.   getCraftables                   function([filter:table]):table -- Get a list of known item recipes. These can be used to issue crafting requests.
  14.   getCraftingCPUs                 function():table -- Get a list of tables representing the available CPUs in the network.
  15.   getEnergyStored                 function([direction:number=6]):number -- Returns the amount of stored energy for the given side.
  16.   getFluidsInNetwork              function():table -- Get a list of the stored fluids in the network.
  17.   getGasesInNetwork               function():table -- Get a list of the stored gases in the network.
  18.   getIdlePowerUsage               function():number -- Get the idle power usage of the network.
  19.   getInventoryName                function():string -- Get the name of this inventory.
  20.   getInventorySize                function():number -- Get the number of slots in this inventory.
  21.   getItemDetail                   function(item:{id:string,dmg:number?,nbt_hash:string?},proxy:boolean?):object -- Retrieves details about the specified item from the ME Network.
  22.   getItemsInNetwork               function([filter:table]):table -- Get a list of the stored items in the network.
  23.   getMaxEnergyStored              function([direction:number=6]):number -- Returns the maximum amount of stored energy for the given side.
  24.   getMaxStoredPower               function():number -- Get the maximum stored power in the network.
  25.   getSlotMaxStackSize             function(slot:number):number -- Get the maximum stack size of the item stack in the specified slot.
  26.   getSlotStackSize                function(slot:number):number -- Get the stack size of the item stack in the specified slot.
  27.   getStackInSlot                  function(slot:number):table -- Get a description of the item stack in the specified slot.
  28.   getStoredPower                  function():number -- Get the stored power in the network.
  29.   isEnergyProvider                function():number -- Returns whether this component can provide energy.
  30.   isEnergyReceiver                function():number -- Returns whether this component can receive energy.
  31.   listMethods                     function(filterSource:string?):string -- List all the methods available
  32.   listSources                     function():table -- List all method sources
  33.   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
  34.   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
  35.   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
  36.   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
  37.   store                           function(filter:table, dbAddress:string[, startSlot:number[, count:number]]): Boolean -- Store items in the network matching the specified filter in the database with the specified address.
  38.   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
  39.   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