**This is an old revision of the document!**

NetworkController Trait API

  • getCpus():table
    Get a list of tables representing the available CPUs in the network.
  • getCraftables([filter:table]):table
    Get a list of known item recipes. These can be used to issue crafting requests.
  • getItemsInNetwork([filter:table]):table
    Get a list of the stored items in the network.
  • store([filter:table], dbAddress:string, [startSlot:number], [count:number]): bool
    Store items in the network matching the specified filter in the database with the specified address.
  • getFluidsInNetwork():table
    Get a list of the stored fluids in the network.
  • getAvgPowerInjection():number
    Get the average power injection into the network.
  • getAvgPowerUsage():number
    Get the average power usage of the network.
  • getIdlePowerUsage():number
    Get the idle power usage of the network.
  • getMaxStoredPower():number
    Get the maximum stored power in the network.
  • getStoredPower():number
    Get the stored power in the network.

Craftable API

- getItemStack():table
Returns the item stack representation of the crafting result. - request([amount:int[, prioritizePower:boolean[, cpuName:string]]]):userdata
Requests the item to be crafted, returning an object that allows tracking the crafting status.

CraftingStatus API

- isCanceled():boolean
Get whether the crafting request has been canceled. - isDone():boolean
Get whether the crafting request is done.