Class PowerModule

java.lang.Object
mindustry.world.modules.BlockModule
mindustry.world.modules.PowerModule

public class PowerModule extends BlockModule
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    boolean
     
    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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    read(arc.util.io.Reads read)
     
    void
    write(arc.util.io.Writes write)
     

    Methods inherited from class mindustry.world.modules.BlockModule

    read

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • status

      public float status
      In 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

      public PowerGraph graph
  • Constructor Details

    • PowerModule

      public PowerModule()
  • Method Details

    • write

      public void write(arc.util.io.Writes write)
      Specified by:
      write in class BlockModule
    • read

      public void read(arc.util.io.Reads read)
      Overrides:
      read in class BlockModule