Added a priority to IAEPowerStorage (#4473)

Added a priority to IAEPowerStorage
This commit is contained in:
yueh
2020-07-18 18:06:05 +02:00
committed by GitHub
parent d79c0f642c
commit 4a289470e2
5 changed files with 54 additions and 6 deletions
@@ -71,4 +71,18 @@ public interface IAEPowerStorage extends IEnergySource {
*/
@Nonnull
AccessRestriction getPowerFlow();
}
/**
* The priority to use this energy storage.
*
* A higher value means it is more likely to be extracted from first, and less
* likely to be inserted into first.
*
* This should never use {@link Integer#MIN_VALUE} or {@link Integer#MAX_VALUE}.
*
* @return the priority for this storage
*/
default int getPriority() {
return 0;
}
}