EUCableGrid
Hierarchy
- EnergyGrid
- EUCableGrid
Index
Constructors
Properties
Methods
- add
- addAll
- addBurnParticles
- addConnection
- addCoords
- addEnergyType
- addPacket
- canConductEnergy
- canExtractEnergy
- canReceiveEnergy
- dealElectrocuteDamage
- destroy
- getCoordsFromString
- init
- isCompatible
- isConductor
- mergeGrid
- onOverload
- rebuildFor6Sides
- rebuildRecursive
- receiveEnergy
- removeConnection
- removeCoords
- resetConnections
- tick
- toString
- transferEnergy
Constructors
constructor
Parameters
energyType: EnergyType
maxValue: number
blockID: number
region: BlockSource
Returns EUCableGrid
Properties
baseEnergy
blockID
blocksMap
currentIn
currentOut
currentPower
dimension
energyIn
energyOut
energyPower
energyTypes
entries
id
initialized
optionalmaxSafetyVoltage
maxValue
receivers
region
removed
Methods
add
Parameters
amount: number
optionalpower: number
Returns number
addAll
Parameters
amount: number
optionalpower: number
Returns void
addBurnParticles
Parameters
x: number
y: number
z: number
Returns void
addConnection
Adds output connection to specified node
Parameters
node: EnergyNode
receiver node
Returns void
addCoords
Parameters
x: number
y: number
z: number
Returns void
addEnergyType
Parameters
energyType: EnergyType
Returns void
addPacket
Parameters
energyName: string
amount: number
optionalsize: number
Returns number
canConductEnergy
Parameters
coord1: Vector
coord2: Vector
side: number
Returns boolean
canExtractEnergy
Parameters
side: number
type: string
Returns boolean
canReceiveEnergy
Parameters
side: number
type: string
Returns boolean
dealElectrocuteDamage
Parameters
damage: number
Returns void
destroy
Returns void
getCoordsFromString
Parameters
coordKey: string
Returns Vector
init
Returns void
isCompatible
Parameters
node: EnergyNode
Returns boolean
isConductor
Parameters
type: string
Returns boolean
mergeGrid
Parameters
grid: EnergyNode
Returns EnergyNode
onOverload
Parameters
voltage: number
Returns void
rebuildFor6Sides
Parameters
x: number
y: number
z: number
Returns void
rebuildRecursive
Parameters
x: number
y: number
z: number
optionalside: number
Returns void
receiveEnergy
Parameters
amount: number
packet: EnergyPacket
Returns number
removeConnection
Removes output connection to specified node
Parameters
node: EnergyNode
receiver node
Returns void
removeCoords
Parameters
x: number
y: number
z: number
Returns void
resetConnections
Returns void
tick
Returns void
toString
Returns string
transferEnergy
Parameters
amount: number
packet: EnergyPacket
Returns number