This commit is contained in:
AlgorithmX2 2014-01-23 13:27:06 -06:00
parent 42424f80c8
commit 63680f3543
2 changed files with 0 additions and 79 deletions

View file

@ -1,56 +0,0 @@
package appeng.helpers;
import java.util.Iterator;
import net.minecraftforge.common.ForgeDirection;
import appeng.api.parts.IPart;
import appeng.parts.CableBusContainer;
public class CBIterator implements Iterator<IPart>
{
int side = 0;
CableBusContainer container;
public CBIterator(CableBusContainer cableBusContainer) {
container = cableBusContainer;
}
private void scan()
{
while (container.getPart( ForgeDirection.getOrientation( side ) ) == null)
{
side++;
if ( side > 6 )
return;
}
}
@Override
public boolean hasNext()
{
scan();
if ( side <= 6 )
return true;
return false;
}
@Override
public IPart next()
{
scan();
if ( side <= 6 )
{
side++;
return container.getPart( ForgeDirection.getOrientation( side ) );
}
return null;
}
@Override
public void remove()
{
container.removePart( ForgeDirection.getOrientation( side ) );
}
}

View file

@ -1,23 +0,0 @@
package appeng.helpers;
import net.minecraft.item.ItemStack;
import appeng.api.storage.data.IAEItemStack;
import appeng.util.item.AEItemStack;
public interface ISharedTagCompoundCache
{
final class CacheIAEItemStack
{
ItemStack src;
AEItemStack stack;
};
CacheIAEItemStack[] itemStackCache = new CacheIAEItemStack[0];
void checkCacheSetup(int size);
IAEItemStack getItem(int x, ItemStack is);
}