Fix SortedSet using compare for equals (#4479)

Fix SortedSet using compare for equals
This commit is contained in:
yueh
2020-07-19 11:43:20 +02:00
committed by GitHub
parent 7121426fc9
commit 755ac12b8a
2 changed files with 12 additions and 4 deletions
@@ -27,6 +27,7 @@ import javax.annotation.Nonnull;
import appeng.api.config.AccessRestriction;
import appeng.api.config.Actionable;
import appeng.api.networking.IGrid;
/**
* Used to access information about AE's various power accepting blocks for
@@ -78,6 +79,10 @@ public interface IAEPowerStorage extends IEnergySource {
* A higher value means it is more likely to be extracted from first, and less
* likely to be inserted into first.
*
* The value needs to be constant once added to a {@link IGrid}. Should it ever
* need to be changed, it has to be removed from the grid, then update the
* value, and finally added back to the grid.
*
* This should never use {@link Integer#MIN_VALUE} or {@link Integer#MAX_VALUE}.
*
* @return the priority for this storage