Class ConsumePowerDynamic


public class ConsumePowerDynamic extends ConsumePower
A power consumer that uses a dynamic amount of power.
  • Constructor Details

    • ConsumePowerDynamic

      public ConsumePowerDynamic(Floatf<mindustry.gen.Building> usage)
  • Method Details

    • requestedPower

      public float requestedPower(mindustry.gen.Building entity)
      Description copied from class: ConsumePower
      Retrieves the amount of power which is requested for the given block and entity.
      Overrides:
      requestedPower in class ConsumePower
      Parameters:
      entity - The entity which contains the power module.
      Returns:
      The amount of power which is requested per tick.
    • display

      public void display(Stats stats)
      Overrides:
      display in class ConsumePower