Tile - YEnergy - Is Energy Port Connected – Ylands
Jump to navigation
Jump to search
m (YlandsClassyBot moved page Ylands Tile - Energy is port connected to Ylands:Tile - YEnergy - Is Energy Port Connected: New Structure) |
No edit summary |
||
Line 1: | Line 1: | ||
<!--- | |||
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. | |||
--> | |||
== Is Energy Port Connected(Entity, Port) == | |||
=Notes= | [[File:YlandsTile-341.png]] | ||
*Energy ports are numbered from 0, e.g: ports of entity with 3 ports are numbered 0, 1, 2 | |||
<pre>static isEnergyPortConnected(entity: YEntity, port: number): boolean;</pre> | |||
=== Parameters === | |||
==== entity ==== | |||
==== port ==== | |||
=== Returns === | |||
'''boolean''' | |||
=== Description === | |||
Returns whether the selected '''port''' is connected to the '''power''' grid. | |||
=== Notes === | |||
* Energy ports are numbered from 0, e.g: ports of entity with 3 ports are numbered 0, 1, 2. | |||
Line 11: | Line 31: | ||
[[Category: Instructions]] | [[Category: Instructions]] | ||
Revision as of 09:52, 8 July 2021
Is Energy Port Connected(Entity, Port)
static isEnergyPortConnected(entity: YEntity, port: number): boolean;
Parameters
entity
port
Returns
boolean
Description
Returns whether the selected port is connected to the power grid.
Notes
- Energy ports are numbered from 0, e.g: ports of entity with 3 ports are numbered 0, 1, 2.