AE2 First Commit, the dawn of 1.7 hast arrived.

This commit is contained in:
algorithmx2
2013-12-27 16:59:59 -06:00
commit e9acdcbee2
468 changed files with 47440 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
package appeng.util.iterators;
import java.util.Iterator;
import net.minecraft.item.ItemStack;
import appeng.util.inv.ItemSlot;
public class StackToSlotIterator implements Iterator<ItemSlot>
{
int x = 0;
final ItemSlot iss = new ItemSlot();
final Iterator<ItemStack> is;
public StackToSlotIterator(Iterator<ItemStack> is) {
this.is = is;
}
@Override
public boolean hasNext()
{
return is.hasNext();
}
@Override
public ItemSlot next()
{
iss.slot = x++;
iss.itemStack = is.next();
return iss;
}
@Override
public void remove()
{
// uhh no.
}
}