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
committed by thatsIch
parent 71223a9d58
commit 3a30ca7570
5 changed files with 398 additions and 116 deletions
@@ -40,6 +40,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
@@ -66,13 +67,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