Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
component:ae2common [2018/10/03 08:58]
payonel created
component:ae2common [2018/10/03 09:34] (current)
payonel
Line 1: Line 1:
-====NetworkController Trait Api====+====NetworkController Trait API====
  
 - `getCpus():​table`  ​ - `getCpus():​table`  ​
Line 7: Line 7:
 - `getItemsInNetwork([filter:​table]):​table`  ​ - `getItemsInNetwork([filter:​table]):​table`  ​
   Get a list of the stored items in the network.   Get a list of the stored items in the network.
-- `store([filter:​table], dbAddress:​string,​ [startSlot:​number], [count:​number]):​ bool`  ​+- `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.   Store items in the network matching the specified filter in the database with the specified address.
 - `getFluidsInNetwork():​table`  ​ - `getFluidsInNetwork():​table`  ​
Line 22: Line 22:
   Get the stored power in the network.   Get the stored power in the network.
  
-====Craftable ​Api====+====Craftable ​API==== 
 - `getItemStack():​table`  ​ - `getItemStack():​table`  ​
   Returns the item stack representation of the crafting result.   Returns the item stack representation of the crafting result.
Line 28: Line 29:
   Requests the item to be crafted, returning an object that allows tracking the crafting status.   Requests the item to be crafted, returning an object that allows tracking the crafting status.
  
-====CraftingStatus ​Api====+====CraftingStatus ​API==== 
 - `isCanceled():​boolean`  ​ - `isCanceled():​boolean`  ​
   Get whether the crafting request has been canceled.   Get whether the crafting request has been canceled.
 - `isDone():​boolean`  ​ - `isDone():​boolean`  ​
   Get whether the crafting request is done.   Get whether the crafting request is done.
 +
 +====Environment API====
 +
 +- `getEnergyStored():​number`  ​
 +  Returns the amount of stored energy on the connected side.
 +
 +- `getMaxEnergyStored():​number`  ​
 +  Returns the maximum amount of stored energy on the connected side.
 +
 +- `canExtract():​number`  ​
 +  Returns whether this component can have energy extracted from the connected side.
 +
 +- `canReceive():​number`  ​
 +  Returns whether this component can receive energy on the connected side.
 +
 +====Interface API====
 +
 +- `getInterfaceConfiguration([slot:​number]):​table`  ​
 +  Get the configuration of the interface.
 +
 +- `setInterfaceConfiguration([slot:​number][,​ database:​address,​ entry:​number[,​ size:​number]]):​boolean`  ​
 +  Configure the interface.
 +
 +====ImportBus API====
 +
 +- `getImportConfiguration(side:​number[,​ slot:​number]):​boolean`  ​
 +  Get the configuration of the import bus pointing in the specified direction.
 +
 +- `setImportConfiguration(side:​number[,​ slot:​number][,​ database:​address,​ entry:​number]):​boolean`  ​
 +  Configure the import bus pointing in the specified direction to import item stacks matching the specified descriptor.
 +
 +====ExportBus API====
 +
 +- `getExportConfiguration(side:​number,​ [ slot:​number]):​boolean`  ​
 +  Get the configuration of the export bus pointing in the specified direction.
 +
 +- `setExportConfiguration(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.
 +
 +- `exportIntoSlot(side:​number,​ slot:​number):​boolean`  ​
 +  Make the export bus facing the specified direction perform a single export operation into the specified slot.