Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
component:ae2common [2018/10/03 08:59]
payonel
component:ae2common [2018/10/03 09:24]
payonel
Line 23: Line 23:
  
 ====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 29: Line 30:
  
 ====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.