Item Tunnels now cycle Outputs.

This commit is contained in:
AlgorithmX2
2014-06-08 18:54:38 -05:00
parent 3d8a129531
commit 76de1cf185
4 changed files with 69 additions and 27 deletions
+13
View File
@@ -32,6 +32,18 @@ public class WrapperChainedInventory implements IInventory
setInventory( ilist );
}
public void cycleOrder()
{
if ( l.size() > 1 )
{
List<IInventory> newOrder = new ArrayList( l.size() );
newOrder.add( l.get( l.size() - 1 ) );
for (int x = 0; x < l.size() - 1; x++)
newOrder.add( l.get( x ) );
setInventory( newOrder );
}
}
public void calculateSizes()
{
offsets = new HashMap<Integer, WrapperChainedInventory.InvOffset>();
@@ -195,4 +207,5 @@ public class WrapperChainedInventory implements IInventory
}
return false;
}
}