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

Components: Applied Energistics

This page covers AE2 components made available with the adapter.

Mod integration is a moving target. This document refers to AE2 rv6 and OC 1.7.3 (or 1.7.2 dev builds) for minecraft 1.12.

Common Network API

All AE2 components provide a common network 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.

ME Controller

AE2 ME Controllerme_controller

The me_controller provides the Common Network API

The me_controller is also an energy device, and thus provides the following:

  • 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.

Craftable

userdata objects returned from any ae2 network component getCraftables

  • 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.

Crafting Status

userdata objects returned from calling request on Craftable

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

ME Interface

AE2 ME Interfaceme_interface

The me_interface provides the Common Network API

The me_interface is also an energy device, and thus provides the following:

  • getInterfaceConfiguration([slot:number]):table
    Get the configuration of the interface.
  • setInterfaceConfiguration([slot:number][, database:address, entry:number[, size:number]]):boolean
    Configure the interface.