Unused.
This commit is contained in:
parent
42424f80c8
commit
63680f3543
2 changed files with 0 additions and 79 deletions
|
@ -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 ) );
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
|
||||
}
|
Loading…
Reference in a new issue