Package mindustry.world.consumers
Class ConsumeLiquid
java.lang.Object
mindustry.world.consumers.Consume
mindustry.world.consumers.ConsumeLiquidBase
mindustry.world.consumers.ConsumeLiquid
-
Field Summary
Fields inherited from class mindustry.world.consumers.ConsumeLiquidBase
amount
Fields inherited from class mindustry.world.consumers.Consume
booster, multiplier, optional, update
-
Constructor Summary
-
Method Summary
-
Field Details
-
liquid
-
-
Constructor Details
-
ConsumeLiquid
-
ConsumeLiquid
protected ConsumeLiquid()
-
-
Method Details
-
apply
Description copied from class:Consume
Apply extra filters to a block.- Overrides:
apply
in classConsumeLiquidBase
-
build
-
update
public void update(mindustry.gen.Building build) -
efficiency
public float efficiency(mindustry.gen.Building build) - Overrides:
efficiency
in classConsume
- Returns:
- [0, 1] efficiency multiplier based on input. Returns 0 if not valid in subclasses. Should return fraction if needs are partially met.
-
display
-