Package mindustry.world.consumers
Class ConsumePayloadDynamic
java.lang.Object
mindustry.world.consumers.Consume
mindustry.world.consumers.ConsumePayloadDynamic
-
Field Details
-
payloads
-
-
Constructor Details
-
ConsumePayloadDynamic
-
-
Method Details
-
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.
-
trigger
public void trigger(mindustry.gen.Building build) Description copied from class:Consume
Called when a consumption is triggered manually. -
display
-
build
-