Merge pull request #1425 from thatsIch/e-weaker-collection-type

Use weaker collection types
This commit is contained in:
thatsIch
2015-05-09 15:57:57 +02:00
18 changed files with 31 additions and 26 deletions
+2 -2
View File
@@ -480,7 +480,7 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
* @param drops drops of tile entity
*/
@Override
public void getDrops( World w, int x, int y, int z, ArrayList<ItemStack> drops )
public void getDrops( World w, int x, int y, int z, List<ItemStack> drops )
{
if( this instanceof IInventory )
{
@@ -497,7 +497,7 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
}
}
public void getNoDrops( World w, int x, int y, int z, ArrayList<ItemStack> drops )
public void getNoDrops( World w, int x, int y, int z, List<ItemStack> drops )
{
}
@@ -20,7 +20,7 @@ package appeng.tile.crafting;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import io.netty.buffer.ByteBuf;
@@ -398,7 +398,7 @@ public class TileMolecularAssembler extends AENetworkInvTile implements IUpgrade
}
@Override
public void getDrops( World w, int x, int y, int z, ArrayList<ItemStack> drops )
public void getDrops( World w, int x, int y, int z, List<ItemStack> drops )
{
super.getDrops( w, x, y, z, drops );
@@ -19,7 +19,7 @@
package appeng.tile.misc;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
@@ -235,7 +235,7 @@ public class TileCellWorkbench extends AEBaseTile implements IUpgradeableHost, I
}
@Override
public void getDrops( World w, int x, int y, int z, ArrayList<ItemStack> drops )
public void getDrops( World w, int x, int y, int z, List<ItemStack> drops )
{
super.getDrops( w, x, y, z, drops );
@@ -20,7 +20,6 @@ package appeng.tile.misc;
import java.io.IOException;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
@@ -195,7 +194,7 @@ public class TileInscriber extends AENetworkPowerTile implements IGridTickable,
}
@Override
public void getDrops( World w, int x, int y, int z, ArrayList<ItemStack> drops )
public void getDrops( World w, int x, int y, int z, List<ItemStack> drops )
{
super.getDrops( w, x, y, z, drops );
@@ -21,6 +21,7 @@ package appeng.tile.misc;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
import com.google.common.collect.ImmutableSet;
@@ -127,7 +128,7 @@ public class TileInterface extends AENetworkInvTile implements IGridTickable, IT
}
@Override
public void getDrops( World w, int x, int y, int z, ArrayList<ItemStack> drops )
public void getDrops( World w, int x, int y, int z, List<ItemStack> drops )
{
this.duality.addDrops( drops );
}
@@ -22,6 +22,7 @@ package appeng.tile.misc;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import com.google.common.collect.ImmutableList;
@@ -50,7 +51,7 @@ public class TilePaint extends AEBaseTile
static final int LIGHT_PER_DOT = 12;
int isLit = 0;
ArrayList<Splotch> dots = null;
List<Splotch> dots = null;
@TileEvent( TileEventType.WORLD_NBT_WRITE )
public void writeToNBT_TilePaint( NBTTagCompound data )
@@ -22,6 +22,7 @@ package appeng.tile.misc;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.List;
import io.netty.buffer.ByteBuf;
@@ -114,7 +115,7 @@ public class TileSecurity extends AENetworkTile implements ITerminalHost, IAEApp
}
@Override
public void getDrops( World w, int x, int y, int z, ArrayList<ItemStack> drops )
public void getDrops( World w, int x, int y, int z, List<ItemStack> drops )
{
if( !this.configSlot.isEmpty() )
{
@@ -194,13 +194,13 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
}
@Override
public void getDrops( World w, int x, int y, int z, ArrayList drops )
public void getDrops( World w, int x, int y, int z, List drops )
{
this.cb.getDrops( drops );
}
@Override
public void getNoDrops( World w, int x, int y, int z, ArrayList<ItemStack> drops )
public void getNoDrops( World w, int x, int y, int z, List<ItemStack> drops )
{
this.cb.getNoDrops( drops );
}
@@ -19,7 +19,7 @@
package appeng.tile.storage;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.inventory.IInventory;
@@ -562,7 +562,7 @@ public class TileIOPort extends AENetworkInvTile implements IUpgradeableHost, IC
* @param drops drops of tile entity
*/
@Override
public void getDrops( World w, int x, int y, int z, ArrayList<ItemStack> drops )
public void getDrops( World w, int x, int y, int z, List<ItemStack> drops )
{
super.getDrops( w, x, y, z, drops );