Speed up ME Terminal search performance by using CompletableFuture

This commit is contained in:
Lasm Gratel
2022-09-20 18:02:07 +08:00
parent 9011273229
commit 8c735305d7
5 changed files with 134 additions and 80 deletions
@@ -39,7 +39,7 @@ import appeng.api.storage.IStorageChannel;
* - For fluids: AEApi.instance().storage().getStorageChannel( IFluidStorageChannel.class).createList()
* - Replace with the corresponding {@link IStorageChannel} type for non native channels
*/
public interface IItemList<T extends IAEStack<T>> extends IItemContainer<T>, Iterable<T>
public interface IItemList<T extends IAEStack<T>> extends IItemContainer<T>, Iterable<T>, Cloneable
{
/**
@@ -85,4 +85,9 @@ public interface IItemList<T extends IAEStack<T>> extends IItemContainer<T>, Ite
* resets stack sizes to 0.
*/
void resetStatus();
}
/**
* create a copy of this list.
*/
IItemList<T> clone();
}