Package mindustry.world.modules
Class PowerModule
java.lang.Object
mindustry.world.modules.BlockModule
mindustry.world.modules.PowerModule
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
arc.struct.IntSeq
float
In case of unbuffered consumers, this is the percentage (1.0f = 100%) of the demanded power which can be supplied. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class mindustry.world.modules.BlockModule
read
-
Field Details
-
status
public float statusIn case of unbuffered consumers, this is the percentage (1.0f = 100%) of the demanded power which can be supplied. Blocks will work at a reduced efficiency if this is not equal to 1.0f. In case of buffered consumers, this is the percentage of power stored in relation to the maximum capacity. -
init
public boolean init -
graph
-
links
public arc.struct.IntSeq links
-
-
Constructor Details
-
PowerModule
public PowerModule()
-
-
Method Details
-
write
public void write(arc.util.io.Writes write) - Specified by:
write
in classBlockModule
-
read
public void read(arc.util.io.Reads read) - Overrides:
read
in classBlockModule
-