UpgradeAPI
Index
Classes
UpgradeSet
constructor
Parameters
tileEntity: TileEntity
Returns UpgradeSet
energyDemandMultiplier
extraEnergyStorage
extraTier
invertRedstone
processTimeMultiplier
speedModifier
protectedtileEntity
executeUprade
Parameters
upgrade: IUpgrade
stack: ItemInstance
Returns void
getEnergyDemand
Parameters
defaultEnergy: number
Returns number
getEnergyStorage
Parameters
defaultEnergyStorage: number
Returns number
getProcessTime
Parameters
defaultLength: number
Returns number
getRedstoneInput
Parameters
powered: boolean
Returns boolean
getTier
Parameters
defaultTier: number
Returns number
isValidUpgrade
Parameters
upgrade: IUpgrade
Returns boolean
resetRates
Returns void
useUpgrades
Returns void
Functions
executeUpgrades
Parameters
machine: TileEntity
Returns UpgradeSet
getUpgrade
Parameters
id: number
Returns IUpgrade
isUpgrade
Parameters
id: number
Returns boolean
isValidUpgrade
Parameters
id: number
machine: TileEntity
Returns boolean
registerUpgrade
Parameters
id: number
upgrade: IUpgrade
Returns void
useUpgrades
Parameters
machine: TileEntity
Returns UpgradeSet