Package mindustry.world.consumers
Class ConsumePowerCondition
java.lang.Object
mindustry.world.consumers.Consume
mindustry.world.consumers.ConsumePower
mindustry.world.consumers.ConsumePowerCondition
A power consumer that only activates sometimes.
-
Field Summary
Fields inherited from class mindustry.world.consumers.ConsumePower
buffered, capacity, usage
Fields inherited from class mindustry.world.consumers.Consume
booster, multiplier, optional, update
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
requestedPower
(mindustry.gen.Building entity) Retrieves the amount of power which is requested for the given block and entity.Methods inherited from class mindustry.world.consumers.ConsumePower
apply, display, efficiency, ignore
-
Constructor Details
-
ConsumePowerCondition
-
-
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 classConsumePower
- Parameters:
entity
- The entity which contains the power module.- Returns:
- The amount of power which is requested per tick.
-