Basic reformat, hit once, hope never again

This commit is contained in:
thatsIch
2015-04-03 08:54:31 +02:00
parent 4ff1631f89
commit d34c988c88
886 changed files with 31400 additions and 30990 deletions
@@ -18,11 +18,13 @@
package appeng.util.iterators;
import java.util.Iterator;
import appeng.api.storage.data.IAEItemStack;
import appeng.tile.inventory.AppEngInternalAEInventory;
public class AEInvIterator implements Iterator<IAEItemStack>
{
@@ -31,7 +33,8 @@ public class AEInvIterator implements Iterator<IAEItemStack>
int x = 0;
public AEInvIterator(AppEngInternalAEInventory i) {
public AEInvIterator( AppEngInternalAEInventory i )
{
this.inv = i;
this.size = this.inv.getSizeInventory();
}
@@ -55,5 +58,4 @@ public class AEInvIterator implements Iterator<IAEItemStack>
{
throw new RuntimeException( "no..." );
}
}
@@ -18,15 +18,18 @@
package appeng.util.iterators;
import java.util.Iterator;
public class ChainedIterator<T> implements Iterator<T>
{
int offset = 0;
final T[] list;
int offset = 0;
public ChainedIterator(T... list) {
public ChainedIterator( T... list )
{
this.list = list;
}
@@ -49,5 +52,4 @@ public class ChainedIterator<T> implements Iterator<T>
{
throw new RuntimeException( "Not implemented." );
}
}
@@ -18,11 +18,13 @@
package appeng.util.iterators;
import java.util.Iterator;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
public class InvIterator implements Iterator<ItemStack>
{
@@ -31,7 +33,8 @@ public class InvIterator implements Iterator<ItemStack>
int x = 0;
public InvIterator(IInventory i) {
public InvIterator( IInventory i )
{
this.inv = i;
this.size = this.inv.getSizeInventory();
}
@@ -55,5 +58,4 @@ public class InvIterator implements Iterator<ItemStack>
{
throw new RuntimeException( "no..." );
}
}
@@ -18,8 +18,10 @@
package appeng.util.iterators;
import java.util.Iterator;
public class NullIterator<T> implements Iterator<T>
{
@@ -40,5 +42,4 @@ public class NullIterator<T> implements Iterator<T>
{
}
}
@@ -18,6 +18,7 @@
package appeng.util.iterators;
import java.util.Iterator;
import net.minecraftforge.common.util.ForgeDirection;
@@ -25,12 +26,14 @@ import net.minecraftforge.common.util.ForgeDirection;
import appeng.api.networking.IGridHost;
import appeng.api.networking.IGridNode;
public class ProxyNodeIterator implements Iterator<IGridNode>
{
final Iterator<IGridHost> hosts;
public ProxyNodeIterator(Iterator<IGridHost> hosts) {
public ProxyNodeIterator( Iterator<IGridHost> hosts )
{
this.hosts = hosts;
}
@@ -52,5 +55,4 @@ public class ProxyNodeIterator implements Iterator<IGridNode>
{
throw new RuntimeException( "Not implemented." );
}
}
@@ -18,20 +18,23 @@
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;
int x = 0;
public StackToSlotIterator(Iterator<ItemStack> is) {
public StackToSlotIterator( Iterator<ItemStack> is )
{
this.is = is;
}
@@ -55,5 +58,4 @@ public class StackToSlotIterator implements Iterator<ItemSlot>
{
// uhh no.
}
}