ChargeItemRegistry
Index
Variables
Functions
Variables
chargeData
Type declaration
[key number]: IElectricItem
Functions
addEnergyTo
Parameters
item: ItemInstance
energyType: string
amount: number
tier: number
optionaladdAll: boolean
Returns number
addEnergyToSlot
Parameters
slot: any
energyType: string
amount: number
tier: number
optionaladdAll: boolean
Returns number
addToCreative
Parameters
id: number
energy: number
Returns void
getDisplayData
Parameters
energy: number
maxCharge: number
Returns number
getEnergyFrom
Parameters
item: ItemInstance
energyType: string
amount: number
tier: number
optionalgetAll: boolean
Returns number
getEnergyFromSlot
Parameters
slot: any
energyType: string
amount: number
tier: number
optionalgetAll: boolean
Returns number
getEnergyStored
Parameters
item: ItemInstance
optionalenergyType: string
Returns number
getItemData
Parameters
id: number
Returns IElectricItem
getMaxCharge
Parameters
id: number
optionalenergyType: string
Returns number
isFlashStorage
Parameters
id: number
Returns boolean
isValidItem
Parameters
id: number
energyType: string
tier: number
Returns boolean
isValidStorage
Parameters
id: number
energyType: string
tier: number
Returns boolean
registerChargeFunction
Parameters
id: number
func: (item: ItemInstance, amount: number, tier: number, addAll?: boolean) => number
Returns void
registerDischargeFunction
Parameters
id: number
func: (item: ItemInstance, amount: number, tier: number, getAll?: boolean) => number
Returns void
registerExtraItem
Parameters
id: number
energyType: string
capacity: number
transferLimit: number
tier: number
optionalitemType: string
optionaladdScale: boolean
optionaladdToCreative: boolean
Returns void
registerFlashItem
Parameters
id: number
energyType: string
amount: number
optionaltier: number
Returns void
registerItem
Parameters
id: number
itemData: IElectricItem
optionalinCreative: boolean
Returns void
setEnergyStored
Parameters
item: ItemInstance
amount: number
Returns void
transferEnergy
Parameters
api: any
field: any
result: ItemInstance
Returns void
Use registerItem instead