IElectricItem
Implemented by
Index
Properties
optionalamount
canProvideEnergy
If true, energy can be extracted from item
energy
Type of energy stored in item
optionalmaxCharge
Energy capacity of item
tier
Tier of item. Specifies where item can be charged or discharged.
optionaltransferLimit
Defines limit for transfering energy in item per 1 time
Methods
optionalonCharge
Custom action on charge
Parameters
item: ItemInstance
amount: number
tier: number
optionaladdAll: boolean
Returns number
optionalonDischarge
Custom action on discharge
Parameters
item: ItemInstance
amount: number
tier: number
optionalgetAll: boolean
Returns number
Amount of energy stored in flash items