More Inventory Stuff.

This commit is contained in:
AlgorithmX2 2013-12-28 15:04:21 -06:00
parent ad1b341ecf
commit d8fe6a6f7c
1 changed files with 10 additions and 1 deletions

View File

@ -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<ItemStack>
{
protected IAEAppEngInventory te;
@ -224,4 +227,10 @@ public class AppEngInternalInventory implements IInventory
{
return true;
}
@Override
public Iterator<ItemStack> iterator()
{
return new InvIterator( this );
}
}