ItemList refactoring

Splitted the ItemList and MeaningfulIterator into an item and fluid
version.
Added an IdentityHashMap as additional item layer to the ItemList for a
faster access.
Refactored FluidList, findFuzzy will now return the same fluid instead of
an empty collection.
This commit is contained in:
yueh
2015-09-15 16:12:16 +02:00
parent 9b685d5b73
commit 1bec11f616
5 changed files with 398 additions and 118 deletions
@@ -41,6 +41,7 @@ import appeng.util.Platform;
import appeng.util.item.AEFluidStack;
import appeng.util.item.AEItemStack;
import appeng.util.item.ItemList;
import appeng.util.item.FluidList;
public class ApiStorage implements IStorageHelper
@@ -67,13 +68,13 @@ public class ApiStorage implements IStorageHelper
@Override
public IItemList<IAEItemStack> createItemList()
{
return new ItemList<IAEItemStack>( IAEItemStack.class );
return new ItemList();
}
@Override
public IItemList<IAEFluidStack> createFluidList()
{
return new ItemList<IAEFluidStack>( IAEFluidStack.class );
return new FluidList();
}
@Override