More Inventory Stuff.
This commit is contained in:
parent
ad1b341ecf
commit
d8fe6a6f7c
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue