diff --git a/tile/inventory/AppEngInternalInventory.java b/tile/inventory/AppEngInternalInventory.java index 1a77818b..171a3bcf 100644 --- a/tile/inventory/AppEngInternalInventory.java +++ b/tile/inventory/AppEngInternalInventory.java @@ -1,5 +1,7 @@ package appeng.tile.inventory; +import java.util.Iterator; + import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; @@ -7,8 +9,9 @@ import net.minecraft.nbt.NBTTagCompound; import appeng.api.storage.IMEInventory; import appeng.me.storage.MEIInventoryWrapper; import appeng.util.Platform; +import appeng.util.iterators.InvIterator; -public class AppEngInternalInventory implements IInventory +public class AppEngInternalInventory implements IInventory, Iterable { protected IAEAppEngInventory te; @@ -224,4 +227,10 @@ public class AppEngInternalInventory implements IInventory { return true; } + + @Override + public Iterator iterator() + { + return new InvIterator( this ); + } }