Resolved some unchecked Types

This commit is contained in:
thatsIch 2014-09-28 22:20:14 +02:00
parent a745e00115
commit f1ffbf08a2
109 changed files with 206 additions and 206 deletions

View file

@ -281,7 +281,7 @@ public class ClientHelper extends ServerHelper
{ {
if ( Platform.isClient() ) if ( Platform.isClient() )
{ {
List<EntityPlayer> o = new ArrayList(); List<EntityPlayer> o = new ArrayList<EntityPlayer>();
o.add( Minecraft.getMinecraft().thePlayer ); o.add( Minecraft.getMinecraft().thePlayer );
return o; return o;
} }

View file

@ -177,7 +177,7 @@ public abstract class AEBaseGui extends GuiContainer
Slot bl_clicked; Slot bl_clicked;
// drag y // drag y
Set<Slot> drag_click = new HashSet(); Set<Slot> drag_click = new HashSet<Slot>();
@Override @Override
protected void handleMouseClick(Slot slot, int slotIdx, int ctrlDown, int key) protected void handleMouseClick(Slot slot, int slotIdx, int ctrlDown, int key)

View file

@ -46,7 +46,7 @@ public class GuiCraftConfirm extends AEBaseGui
IItemList<IAEItemStack> pending = AEApi.instance().storage().createItemList(); IItemList<IAEItemStack> pending = AEApi.instance().storage().createItemList();
IItemList<IAEItemStack> missing = AEApi.instance().storage().createItemList(); IItemList<IAEItemStack> missing = AEApi.instance().storage().createItemList();
List<IAEItemStack> visual = new ArrayList(); List<IAEItemStack> visual = new ArrayList<IAEItemStack>();
GuiBridge OriginalGui; GuiBridge OriginalGui;
@ -382,7 +382,7 @@ public class GuiCraftConfirm extends AEBaseGui
int viewEnd = viewStart + 3 * rows; int viewEnd = viewStart + 3 * rows;
String dspToolTip = ""; String dspToolTip = "";
List<String> lineList = new LinkedList(); List<String> lineList = new LinkedList<String>();
int toolPosX = 0; int toolPosX = 0;
int toolPosY = 0; int toolPosY = 0;

View file

@ -39,14 +39,14 @@ public class GuiCraftingCPU extends AEBaseGui implements ISortSource
IItemList<IAEItemStack> active = AEApi.instance().storage().createItemList(); IItemList<IAEItemStack> active = AEApi.instance().storage().createItemList();
IItemList<IAEItemStack> pending = AEApi.instance().storage().createItemList(); IItemList<IAEItemStack> pending = AEApi.instance().storage().createItemList();
List<IAEItemStack> visual = new ArrayList(); List<IAEItemStack> visual = new ArrayList<IAEItemStack>();
public void clearItems() public void clearItems()
{ {
storage = AEApi.instance().storage().createItemList(); storage = AEApi.instance().storage().createItemList();
active = AEApi.instance().storage().createItemList(); active = AEApi.instance().storage().createItemList();
pending = AEApi.instance().storage().createItemList(); pending = AEApi.instance().storage().createItemList();
visual = new ArrayList(); visual = new ArrayList<IAEItemStack>();
} }
protected GuiCraftingCPU(ContainerCraftingCPU container) { protected GuiCraftingCPU(ContainerCraftingCPU container) {
@ -269,7 +269,7 @@ public class GuiCraftingCPU extends AEBaseGui implements ISortSource
int viewEnd = viewStart + 3 * 6; int viewEnd = viewStart + 3 * 6;
String dspToolTip = ""; String dspToolTip = "";
List<String> lineList = new LinkedList(); List<String> lineList = new LinkedList<String>();
int toolPosX = 0; int toolPosX = 0;
int toolPosY = 0; int toolPosY = 0;

View file

@ -25,11 +25,11 @@ import com.google.common.collect.HashMultimap;
public class GuiInterfaceTerminal extends AEBaseGui public class GuiInterfaceTerminal extends AEBaseGui
{ {
HashMap<Long, ClientDCInternalInv> byId = new HashMap(); HashMap<Long, ClientDCInternalInv> byId = new HashMap<Long, ClientDCInternalInv>();
HashMultimap<String, ClientDCInternalInv> byName = HashMultimap.create(); HashMultimap<String, ClientDCInternalInv> byName = HashMultimap.create();
ArrayList<String> names = new ArrayList(); ArrayList<String> names = new ArrayList<String>();
ArrayList<Object> lines = new ArrayList(); ArrayList<Object> lines = new ArrayList<Object>();
private int getTotalRows() private int getTotalRows()
{ {
@ -43,7 +43,7 @@ public class GuiInterfaceTerminal extends AEBaseGui
ySize = 222; ySize = 222;
} }
LinkedList<SlotDisconnected> dcSlots = new LinkedList(); LinkedList<SlotDisconnected> dcSlots = new LinkedList<SlotDisconnected>();
@Override @Override
public void initGui() public void initGui()
@ -178,12 +178,12 @@ public class GuiInterfaceTerminal extends AEBaseGui
Collections.sort( names ); Collections.sort( names );
lines = new ArrayList( getTotalRows() ); lines = new ArrayList<Object>( getTotalRows() );
for (String n : names) for (String n : names)
{ {
lines.add( n ); lines.add( n );
ArrayList<ClientDCInternalInv> clientInventories = new ArrayList(); ArrayList<ClientDCInternalInv> clientInventories = new ArrayList<ClientDCInternalInv>();
clientInventories.addAll( byName.get( n ) ); clientInventories.addAll( byName.get( n ) );
Collections.sort( clientInventories ); Collections.sort( clientInventories );

View file

@ -101,7 +101,7 @@ public class GuiImgButton extends GuiButton implements ITooltip
if ( Appearances == null ) if ( Appearances == null )
{ {
Appearances = new HashMap(); Appearances = new HashMap<EnumPair, BtnAppearance>();
registerApp( 16 * 7 + 0, Settings.CONDENSER_OUTPUT, CondenserOutput.TRASH, ButtonToolTips.CondenserOutput, ButtonToolTips.Trash ); registerApp( 16 * 7 + 0, Settings.CONDENSER_OUTPUT, CondenserOutput.TRASH, ButtonToolTips.CondenserOutput, ButtonToolTips.Trash );
registerApp( 16 * 7 + 1, Settings.CONDENSER_OUTPUT, CondenserOutput.MATTER_BALLS, ButtonToolTips.CondenserOutput, ButtonToolTips.MatterBalls ); registerApp( 16 * 7 + 1, Settings.CONDENSER_OUTPUT, CondenserOutput.MATTER_BALLS, ButtonToolTips.CondenserOutput, ButtonToolTips.MatterBalls );
registerApp( 16 * 7 + 2, Settings.CONDENSER_OUTPUT, CondenserOutput.SINGULARITY, ButtonToolTips.CondenserOutput, ButtonToolTips.Singularity ); registerApp( 16 * 7 + 2, Settings.CONDENSER_OUTPUT, CondenserOutput.SINGULARITY, ButtonToolTips.CondenserOutput, ButtonToolTips.Singularity );

View file

@ -29,7 +29,7 @@ public class BusRenderer implements IItemRenderer
public static final BusRenderer instance = new BusRenderer(); public static final BusRenderer instance = new BusRenderer();
public RenderBlocksWorkaround renderer = new RenderBlocksWorkaround(); public RenderBlocksWorkaround renderer = new RenderBlocksWorkaround();
public static final HashMap<Integer, IPart> renderPart = new HashMap(); public static final HashMap<Integer, IPart> renderPart = new HashMap<Integer, IPart>();
public IPart getRenderer(ItemStack is, IPartItem c) public IPart getRenderer(ItemStack is, IPartItem c)
{ {

View file

@ -106,7 +106,7 @@ public class CableRenderHelper
/** /**
* snag list of boxes... * snag list of boxes...
*/ */
List<AxisAlignedBB> boxes = new ArrayList(); List<AxisAlignedBB> boxes = new ArrayList<AxisAlignedBB>();
for (ForgeDirection s : ForgeDirection.values()) for (ForgeDirection s : ForgeDirection.values())
{ {
IPart part = cableBusContainer.getPart( s ); IPart part = cableBusContainer.getPart( s );

View file

@ -23,7 +23,7 @@ public class WorldRender implements ISimpleBlockRenderingHandler
public static final WorldRender instance = new WorldRender(); public static final WorldRender instance = new WorldRender();
boolean hasError = false; boolean hasError = false;
public HashMap<AEBaseBlock, BaseBlockRender> blockRenders = new HashMap(); public HashMap<AEBaseBlock, BaseBlockRender> blockRenders = new HashMap<AEBaseBlock, BaseBlockRender>();
void setRender(AEBaseBlock in, BaseBlockRender r) void setRender(AEBaseBlock in, BaseBlockRender r)
{ {

View file

@ -72,7 +72,7 @@ public abstract class AEBaseContainer extends Container
int ticksSinceCheck = 900; int ticksSinceCheck = 900;
IAEItemStack clientRequestedTargetItem = null; IAEItemStack clientRequestedTargetItem = null;
List<PacketPartialItem> dataChunks = new LinkedList(); List<PacketPartialItem> dataChunks = new LinkedList<PacketPartialItem>();
public void postPartial(PacketPartialItem packetPartialItem) public void postPartial(PacketPartialItem packetPartialItem)
{ {
@ -129,7 +129,7 @@ public abstract class AEBaseContainer extends Container
CompressedStreamTools.writeCompressed( item, stream ); CompressedStreamTools.writeCompressed( item, stream );
int maxChunkSize = 30000; int maxChunkSize = 30000;
List<byte[]> miniPackets = new LinkedList(); List<byte[]> miniPackets = new LinkedList<byte[]>();
byte[] data = stream.toByteArray(); byte[] data = stream.toByteArray();
@ -216,7 +216,7 @@ public abstract class AEBaseContainer extends Container
public ContainerOpenContext openContext; public ContainerOpenContext openContext;
protected IMEInventoryHandler<IAEItemStack> cellInv; protected IMEInventoryHandler<IAEItemStack> cellInv;
protected HashSet<Integer> locked = new HashSet(); protected HashSet<Integer> locked = new HashSet<Integer>();
protected IEnergySource powerSrc; protected IEnergySource powerSrc;
public void lockPlayerInventorySlot(int idx) public void lockPlayerInventorySlot(int idx)
@ -772,7 +772,7 @@ public abstract class AEBaseContainer extends Container
if ( action == InventoryAction.MOVE_REGION ) if ( action == InventoryAction.MOVE_REGION )
{ {
List<Slot> from = new LinkedList(); List<Slot> from = new LinkedList<Slot>();
for (Object j : inventorySlots) for (Object j : inventorySlots)
{ {

View file

@ -76,7 +76,7 @@ public class ContainerCraftConfirm extends AEBaseContainer
protected long cpuIdx = Long.MIN_VALUE; protected long cpuIdx = Long.MIN_VALUE;
public ArrayList<CraftingCPURecord> cpus = new ArrayList(); public ArrayList<CraftingCPURecord> cpus = new ArrayList<CraftingCPURecord>();
public ContainerCraftConfirm(InventoryPlayer ip, ITerminalHost te) { public ContainerCraftConfirm(InventoryPlayer ip, ITerminalHost te) {
super( ip, te ); super( ip, te );

View file

@ -23,7 +23,7 @@ public class ContainerCraftingStatus extends ContainerCraftingCPU
@GuiSync(7) @GuiSync(7)
public String myName = ""; public String myName = "";
public ArrayList<CraftingCPURecord> cpus = new ArrayList(); public ArrayList<CraftingCPURecord> cpus = new ArrayList<CraftingCPURecord>();
private void sendCPUs() private void sendCPUs()
{ {

View file

@ -61,8 +61,8 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
} }
Map<IInterfaceHost, InvTracker> diList = new HashMap(); Map<IInterfaceHost, InvTracker> diList = new HashMap<IInterfaceHost, InvTracker>();
Map<Long, InvTracker> byId = new HashMap(); Map<Long, InvTracker> byId = new HashMap<Long, InvTracker>();
IGrid g; IGrid g;
public ContainerInterfaceTerminal(InventoryPlayer ip, PartMonitor anchor) { public ContainerInterfaceTerminal(InventoryPlayer ip, PartMonitor anchor) {

View file

@ -259,7 +259,7 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
} }
else else
{ {
List<ItemStack> list = new ArrayList( 3 ); List<ItemStack> list = new ArrayList<ItemStack>( 3 );
boolean hasValue = false; boolean hasValue = false;
for (int x = 0; x < outputSlots.length; x++) for (int x = 0; x < outputSlots.length; x++)

View file

@ -149,7 +149,7 @@ public class SlotCraftingTerm extends AppEngCraftingSlot
public void postCraft(EntityPlayer p, IMEMonitor<IAEItemStack> inv, ItemStack set[], ItemStack result) public void postCraft(EntityPlayer p, IMEMonitor<IAEItemStack> inv, ItemStack set[], ItemStack result)
{ {
List<ItemStack> drops = new ArrayList(); List<ItemStack> drops = new ArrayList<ItemStack>();
// add one of each item to the items on the board... // add one of each item to the items on the board...
if ( Platform.isServer() ) if ( Platform.isServer() )
@ -219,7 +219,7 @@ public class SlotCraftingTerm extends AppEngCraftingSlot
ItemStack extra = ia.addItems( craftItem( who, rs, inv, all ) ); ItemStack extra = ia.addItems( craftItem( who, rs, inv, all ) );
if ( extra != null ) if ( extra != null )
{ {
List<ItemStack> drops = new ArrayList(); List<ItemStack> drops = new ArrayList<ItemStack>();
drops.add( extra ); drops.add( extra );
Platform.spawnDrops( who.worldObj, (int) who.posX, (int) who.posY, (int) who.posZ, drops ); Platform.spawnDrops( who.worldObj, (int) who.posX, (int) who.posY, (int) who.posZ, drops );
return; return;

View file

@ -53,7 +53,7 @@ public class AppEng
public final static String modid = "appliedenergistics2"; public final static String modid = "appliedenergistics2";
public final static String name = "Applied Energistics 2"; public final static String name = "Applied Energistics 2";
HashMap<String, IIMCHandler> IMCHandlers = new HashMap(); HashMap<String, IIMCHandler> IMCHandlers = new HashMap<String, IIMCHandler>();
public static AppEng instance; public static AppEng instance;

View file

@ -317,7 +317,7 @@ public class WorldSettings extends Configuration
save(); save();
} }
private WeakHashMap<GridStorageSearch, WeakReference<GridStorageSearch>> loadedStorage = new WeakHashMap(); private WeakHashMap<GridStorageSearch, WeakReference<GridStorageSearch>> loadedStorage = new WeakHashMap<GridStorageSearch, WeakReference<GridStorageSearch>>();
public WorldCoord getStoredSize(int dim) public WorldCoord getStoredSize(int dim)
{ {

View file

@ -44,12 +44,12 @@ public class ApiPart implements IPartHelper
int classNum = 1; int classNum = 1;
HashMap<String, Class> TileImplementations = new HashMap(); HashMap<String, Class> TileImplementations = new HashMap<String, Class>();
HashMap<String, ClassNode> readerCache = new HashMap(); HashMap<String, ClassNode> readerCache = new HashMap<String, ClassNode>();
HashMap<Class, String> interfaces2Layer = new HashMap(); HashMap<Class, String> interfaces2Layer = new HashMap<Class, String>();
HashMap<String, Class> roots = new HashMap(); HashMap<String, Class> roots = new HashMap<String, Class>();
List<String> desc = new LinkedList(); List<String> desc = new LinkedList<String>();
public void initFMPSupport() public void initFMPSupport()
{ {

View file

@ -40,13 +40,13 @@ public class ApiStorage implements IStorageHelper
@Override @Override
public IItemList<IAEItemStack> createItemList() public IItemList<IAEItemStack> createItemList()
{ {
return new ItemList( IAEItemStack.class ); return new ItemList<IAEItemStack>( IAEItemStack.class );
} }
@Override @Override
public IItemList<IAEFluidStack> createFluidList() public IItemList<IAEFluidStack> createFluidList()
{ {
return new ItemList( IAEFluidStack.class ); return new ItemList<IAEFluidStack>( IAEFluidStack.class );
} }
@Override @Override

View file

@ -16,7 +16,7 @@ public class CellRegistry implements ICellRegistry
List<ICellHandler> handlers; List<ICellHandler> handlers;
public CellRegistry() { public CellRegistry() {
handlers = new ArrayList(); handlers = new ArrayList<ICellHandler>();
} }
@Override @Override

View file

@ -18,7 +18,7 @@ public class ExternalStorageRegistry implements IExternalStorageRegistry
final ExternalIInv lastHandler = new ExternalIInv(); final ExternalIInv lastHandler = new ExternalIInv();
public ExternalStorageRegistry() { public ExternalStorageRegistry() {
Handlers = new ArrayList(); Handlers = new ArrayList<IExternalStorageHandler>();
} }
@Override @Override

View file

@ -11,7 +11,7 @@ import appeng.core.AELog;
public class GridCacheRegistry implements IGridCacheRegistry public class GridCacheRegistry implements IGridCacheRegistry
{ {
final private HashMap<Class<? extends IGridCache>, Class<? extends IGridCache>> caches = new HashMap(); final private HashMap<Class<? extends IGridCache>, Class<? extends IGridCache>> caches = new HashMap<Class<? extends IGridCache>, Class<? extends IGridCache>>();
@Override @Override
public void registerGridCache(Class<? extends IGridCache> iface, Class<? extends IGridCache> implementation) public void registerGridCache(Class<? extends IGridCache> iface, Class<? extends IGridCache> implementation)
@ -25,7 +25,7 @@ public class GridCacheRegistry implements IGridCacheRegistry
@Override @Override
public HashMap<Class<? extends IGridCache>, IGridCache> createCacheInstance(IGrid g) public HashMap<Class<? extends IGridCache>, IGridCache> createCacheInstance(IGrid g)
{ {
HashMap<Class<? extends IGridCache>, IGridCache> map = new HashMap(); HashMap<Class<? extends IGridCache>, IGridCache> map = new HashMap<Class<? extends IGridCache>, IGridCache>();
for (Class<? extends IGridCache> iface : caches.keySet()) for (Class<? extends IGridCache> iface : caches.keySet())
{ {

View file

@ -31,7 +31,7 @@ public class GrinderRecipeManager implements IGrinderRegistry, IOreListener
} }
public GrinderRecipeManager() { public GrinderRecipeManager() {
RecipeList = new ArrayList(); RecipeList = new ArrayList<IGrinderEntry>();
addOre( "Coal", new ItemStack( Items.coal ) ); addOre( "Coal", new ItemStack( Items.coal ) );
addOre( "Charcoal", new ItemStack( Items.coal, 1, 1 ) ); addOre( "Charcoal", new ItemStack( Items.coal, 1, 1 ) );

View file

@ -32,7 +32,7 @@ public class LocatableRegistry implements ILocatableRegistry
} }
public LocatableRegistry() { public LocatableRegistry() {
set = new HashMap(); set = new HashMap<Long, ILocatable>();
MinecraftForge.EVENT_BUS.register( this ); MinecraftForge.EVENT_BUS.register( this );
} }

View file

@ -15,7 +15,7 @@ import appeng.spatial.DefaultSpatialHandler;
public class MovableTileRegistry implements IMovableRegistry public class MovableTileRegistry implements IMovableRegistry
{ {
private HashSet<Block> blacklisted = new HashSet(); private HashSet<Block> blacklisted = new HashSet<Block>();
private HashMap<Class<? extends TileEntity>, IMovableHandler> Valid = new HashMap<Class<? extends TileEntity>, IMovableHandler>(); private HashMap<Class<? extends TileEntity>, IMovableHandler> Valid = new HashMap<Class<? extends TileEntity>, IMovableHandler>();
private LinkedList<Class<? extends TileEntity>> test = new LinkedList<Class<? extends TileEntity>>(); private LinkedList<Class<? extends TileEntity>> test = new LinkedList<Class<? extends TileEntity>>();

View file

@ -18,7 +18,7 @@ import cpw.mods.fml.common.registry.GameRegistry;
public class P2PTunnelRegistry implements IP2PTunnelRegistry public class P2PTunnelRegistry implements IP2PTunnelRegistry
{ {
HashMap<ItemStack, TunnelType> Tunnels = new HashMap(); HashMap<ItemStack, TunnelType> Tunnels = new HashMap<ItemStack, TunnelType>();
public ItemStack getModItem(String modID, String Name, int meta) public ItemStack getModItem(String modID, String Name, int meta)
{ {

View file

@ -19,7 +19,7 @@ public class WirelessRegistry implements IWirelessTermRegistry
List<IWirelessTermHandler> handlers; List<IWirelessTermHandler> handlers;
public WirelessRegistry() { public WirelessRegistry() {
handlers = new ArrayList(); handlers = new ArrayList<IWirelessTermHandler>();
} }
@Override @Override

View file

@ -12,8 +12,8 @@ public class WorldGenRegistry implements IWorldGen
private class TypeSet private class TypeSet
{ {
HashSet<Class<? extends WorldProvider>> badProviders = new HashSet(); HashSet<Class<? extends WorldProvider>> badProviders = new HashSet<Class<? extends WorldProvider>>();
HashSet<Integer> badDimensions = new HashSet(); HashSet<Integer> badDimensions = new HashSet<Integer>();
} }

View file

@ -124,7 +124,7 @@ public class PlayerStatsRegistration
/** /**
* register * register
*/ */
ArrayList<Achievement> list = new ArrayList(); ArrayList<Achievement> list = new ArrayList<Achievement>();
for (Achievements a : Achievements.values()) for (Achievements a : Achievements.values())
{ {

View file

@ -47,7 +47,7 @@ public class PacketMEInventoryUpdate extends AppEngPacket
public PacketMEInventoryUpdate(final ByteBuf stream) throws IOException { public PacketMEInventoryUpdate(final ByteBuf stream) throws IOException {
data = null; data = null;
compressFrame = null; compressFrame = null;
list = new LinkedList(); list = new LinkedList<IAEItemStack>();
ref = stream.readByte(); ref = stream.readByte();
// int originalBytes = stream.readableBytes(); // int originalBytes = stream.readableBytes();

View file

@ -51,7 +51,7 @@ public class CraftingJob implements Runnable, ICraftingJob
{ {
world = wrapWorld( w ); world = wrapWorld( w );
storage = AEApi.instance().storage().createItemList(); storage = AEApi.instance().storage().createItemList();
prophecies = new HashSet(); prophecies = new HashSet<IAEItemStack>();
original = null; original = null;
availableCheck = null; availableCheck = null;
} }
@ -71,7 +71,7 @@ public class CraftingJob implements Runnable, ICraftingJob
world = wrapWorld( w ); world = wrapWorld( w );
output = what.copy(); output = what.copy();
storage = AEApi.instance().storage().createItemList(); storage = AEApi.instance().storage().createItemList();
prophecies = new HashSet(); prophecies = new HashSet<IAEItemStack>();
this.actionSrc = actionSrc; this.actionSrc = actionSrc;
this.callback = callback; this.callback = callback;
@ -129,7 +129,7 @@ public class CraftingJob implements Runnable, ICraftingJob
public long times = 0; public long times = 0;
} }
HashMap<String, twoIntegers> opsAndMultiplier = new HashMap(); HashMap<String, twoIntegers> opsAndMultiplier = new HashMap<String, twoIntegers>();
@Override @Override
public void run() public void run()

View file

@ -30,7 +30,7 @@ public class CraftingTreeNode
private IAEItemStack what; private IAEItemStack what;
// what are the crafting patterns for this? // what are the crafting patterns for this?
private ArrayList<CraftingTreeProcess> nodes = new ArrayList(); private ArrayList<CraftingTreeProcess> nodes = new ArrayList<CraftingTreeProcess>();
boolean canEmit = false; boolean canEmit = false;
boolean cannotUse = false; boolean cannotUse = false;
@ -95,7 +95,7 @@ public class CraftingTreeNode
{ {
job.handlePausing(); job.handlePausing();
List<IAEItemStack> thingsUsed = new LinkedList(); List<IAEItemStack> thingsUsed = new LinkedList<IAEItemStack>();
what.setStackSize( l ); what.setStackSize( l );
if ( slot >= 0 && parent != null && parent.details.isCraftable() ) if ( slot >= 0 && parent != null && parent.details.isCraftable() )

View file

@ -36,7 +36,7 @@ public class CraftingTreeProcess
private long bytes = 0; private long bytes = 0;
final private int depth; final private int depth;
Map<CraftingTreeNode, Long> nodes = new HashMap(); Map<CraftingTreeNode, Long> nodes = new HashMap<CraftingTreeNode, Long>();
public boolean possible = true; public boolean possible = true;
public CraftingTreeProcess(ICraftingGrid cc, CraftingJob job, ICraftingPatternDetails details, CraftingTreeNode craftingTreeNode, int depth, World world) { public CraftingTreeProcess(ICraftingGrid cc, CraftingJob job, ICraftingPatternDetails details, CraftingTreeNode craftingTreeNode, int depth, World world) {

View file

@ -50,7 +50,7 @@ public class CraftingWatcher implements ICraftingWatcher
CraftingGridCache gsc; CraftingGridCache gsc;
ICraftingWatcherHost myObject; ICraftingWatcherHost myObject;
HashSet<IAEStack> myInterests = new HashSet(); HashSet<IAEStack> myInterests = new HashSet<IAEStack>();
public CraftingWatcher(CraftingGridCache cache, ICraftingWatcherHost host) { public CraftingWatcher(CraftingGridCache cache, ICraftingWatcherHost host) {
gsc = cache; gsc = cache;

View file

@ -14,7 +14,7 @@ import appeng.tile.AEBaseTile;
public class TileItemGen extends AEBaseTile implements IInventory public class TileItemGen extends AEBaseTile implements IInventory
{ {
public static Queue<ItemStack> possibleItems = new LinkedList(); public static Queue<ItemStack> possibleItems = new LinkedList<ItemStack>();
public TileItemGen() { public TileItemGen() {
if ( possibleItems.isEmpty() ) if ( possibleItems.isEmpty() )

View file

@ -84,7 +84,7 @@ public class ToolDebugCard extends AEBaseItem
{ {
int length = 0; int length = 0;
HashSet<IGridNode> next = new HashSet(); HashSet<IGridNode> next = new HashSet<IGridNode>();
next.add( node ); next.add( node );
int maxLength = 10000; int maxLength = 10000;
@ -92,7 +92,7 @@ public class ToolDebugCard extends AEBaseItem
outer: while ( ! next.isEmpty() ) outer: while ( ! next.isEmpty() )
{ {
HashSet<IGridNode> current = next; HashSet<IGridNode> current = next;
next = new HashSet(); next = new HashSet<IGridNode>();
for ( IGridNode n : current ) for ( IGridNode n : current )
{ {

View file

@ -34,14 +34,14 @@ public class ToolEraser extends AEBaseItem
int meta = world.getBlockMetadata( x, y, z ); int meta = world.getBlockMetadata( x, y, z );
int blocks = 0; int blocks = 0;
List<WorldCoord> next = new LinkedList(); List<WorldCoord> next = new LinkedList<WorldCoord>();
next.add( new WorldCoord( x, y, z ) ); next.add( new WorldCoord( x, y, z ) );
while (blocks < 90000 && !next.isEmpty()) while (blocks < 90000 && !next.isEmpty())
{ {
List<WorldCoord> c = next; List<WorldCoord> c = next;
next = new LinkedList(); next = new LinkedList<WorldCoord>();
for (WorldCoord wc : c) for (WorldCoord wc : c)
{ {

View file

@ -106,7 +106,7 @@ final public class EntityChargedQuartz extends EntityItem
if ( netherQuartz.getEntityItem().stackSize <= 0 ) if ( netherQuartz.getEntityItem().stackSize <= 0 )
netherQuartz.setDead(); netherQuartz.setDead();
List<ItemStack> i = new ArrayList(); List<ItemStack> i = new ArrayList<ItemStack>();
i.add( AEApi.instance().materials().materialFluixCrystal.stack( 1 ) ); i.add( AEApi.instance().materials().materialFluixCrystal.stack( 1 ) );
ItemStack Output = AEApi.instance().materials().materialFluixCrystal.stack( 2 ); ItemStack Output = AEApi.instance().materials().materialFluixCrystal.stack( 2 );

View file

@ -314,7 +314,7 @@ public class CableBusPart extends JCuboidPart implements JNormalOcclusion, IReds
{ {
if ( !(side == null || side == ForgeDirection.UNKNOWN || tile() == null) ) if ( !(side == null || side == ForgeDirection.UNKNOWN || tile() == null) )
{ {
List<AxisAlignedBB> boxes = new ArrayList(); List<AxisAlignedBB> boxes = new ArrayList<AxisAlignedBB>();
IPartCollisionHelper bch = new BusCollisionHelper( boxes, side, null, true ); IPartCollisionHelper bch = new BusCollisionHelper( boxes, side, null, true );
fp.getBoxes( bch, null ); fp.getBoxes( bch, null );
for (AxisAlignedBB bb : boxes) for (AxisAlignedBB bb : boxes)
@ -341,7 +341,7 @@ public class CableBusPart extends JCuboidPart implements JNormalOcclusion, IReds
IPart bp = bi.createPartFromItemStack( is ); IPart bp = bi.createPartFromItemStack( is );
if ( !(side == null || side == ForgeDirection.UNKNOWN || tile() == null) ) if ( !(side == null || side == ForgeDirection.UNKNOWN || tile() == null) )
{ {
List<AxisAlignedBB> boxes = new ArrayList(); List<AxisAlignedBB> boxes = new ArrayList<AxisAlignedBB>();
IPartCollisionHelper bch = new BusCollisionHelper( boxes, side, null, true ); IPartCollisionHelper bch = new BusCollisionHelper( boxes, side, null, true );
bp.getBoxes( bch ); bp.getBoxes( bch );
for (AxisAlignedBB bb : boxes) for (AxisAlignedBB bb : boxes)
@ -411,7 +411,7 @@ public class CableBusPart extends JCuboidPart implements JNormalOcclusion, IReds
@Override @Override
public Iterable<Cuboid6> getCollisionBoxes() public Iterable<Cuboid6> getCollisionBoxes()
{ {
LinkedList l = new LinkedList(); LinkedList<Cuboid6> l = new LinkedList<Cuboid6>();
for (AxisAlignedBB b : cb.getSelectedBoundingBoxesFromPool( false, true, null, false )) for (AxisAlignedBB b : cb.getSelectedBoundingBoxesFromPool( false, true, null, false ))
{ {
l.add( new Cuboid6( b.minX, b.minY, b.minZ, b.maxX, b.maxY, b.maxZ ) ); l.add( new Cuboid6( b.minX, b.minY, b.minZ, b.maxX, b.maxY, b.maxZ ) );
@ -423,7 +423,7 @@ public class CableBusPart extends JCuboidPart implements JNormalOcclusion, IReds
@Override @Override
public Iterable<IndexedCuboid6> getSubParts() public Iterable<IndexedCuboid6> getSubParts()
{ {
LinkedList<IndexedCuboid6> l = new LinkedList(); LinkedList<IndexedCuboid6> l = new LinkedList<IndexedCuboid6>();
for (Cuboid6 c : getCollisionBoxes()) for (Cuboid6 c : getCollisionBoxes())
{ {
l.add( new IndexedCuboid6( 0, c ) ); l.add( new IndexedCuboid6( 0, c ) );
@ -434,7 +434,7 @@ public class CableBusPart extends JCuboidPart implements JNormalOcclusion, IReds
@Override @Override
public Iterable<Cuboid6> getOcclusionBoxes() public Iterable<Cuboid6> getOcclusionBoxes()
{ {
LinkedList l = new LinkedList(); LinkedList<Cuboid6> l = new LinkedList<Cuboid6>();
for (AxisAlignedBB b : cb.getSelectedBoundingBoxesFromPool( true, disableFacadeOcclusion.get() == null, null, true )) for (AxisAlignedBB b : cb.getSelectedBoundingBoxesFromPool( true, disableFacadeOcclusion.get() == null, null, true ))
{ {
l.add( new Cuboid6( b.minX, b.minY, b.minZ, b.maxX, b.maxY, b.maxZ ) ); l.add( new Cuboid6( b.minX, b.minY, b.minZ, b.maxX, b.maxY, b.maxZ ) );
@ -543,7 +543,7 @@ public class CableBusPart extends JCuboidPart implements JNormalOcclusion, IReds
ForgeDirection dir = ForgeDirection.getOrientation( side ); ForgeDirection dir = ForgeDirection.getOrientation( side );
if ( cable != null && cable.isConnected( dir ) ) if ( cable != null && cable.isConnected( dir ) )
{ {
List<AxisAlignedBB> boxes = new ArrayList(); List<AxisAlignedBB> boxes = new ArrayList<AxisAlignedBB>();
BusCollisionHelper bch = new BusCollisionHelper( boxes, ForgeDirection.EAST, ForgeDirection.UP, ForgeDirection.SOUTH, null, true ); BusCollisionHelper bch = new BusCollisionHelper( boxes, ForgeDirection.EAST, ForgeDirection.UP, ForgeDirection.SOUTH, null, true );

View file

@ -169,7 +169,7 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
if ( details != null ) if ( details != null )
{ {
if ( craftingList == null ) if ( craftingList == null )
craftingList = new LinkedList(); craftingList = new LinkedList<ICraftingPatternDetails>();
craftingList.add( details ); craftingList.add( details );
} }
@ -182,7 +182,7 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
return; return;
if ( waitingToSend == null ) if ( waitingToSend == null )
waitingToSend = new LinkedList(); waitingToSend = new LinkedList<ItemStack>();
waitingToSend.add( is ); waitingToSend.add( is );
@ -513,8 +513,8 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
return patterns; return patterns;
} }
MEMonitorPassThrough<IAEItemStack> items = new MEMonitorPassThrough<IAEItemStack>( new NullInventory(), StorageChannel.ITEMS ); MEMonitorPassThrough<IAEItemStack> items = new MEMonitorPassThrough<IAEItemStack>( new NullInventory<IAEItemStack>(), StorageChannel.ITEMS );
MEMonitorPassThrough<IAEFluidStack> fluids = new MEMonitorPassThrough<IAEFluidStack>( new NullInventory(), StorageChannel.FLUIDS ); MEMonitorPassThrough<IAEFluidStack> fluids = new MEMonitorPassThrough<IAEFluidStack>( new NullInventory<IAEFluidStack>(), StorageChannel.FLUIDS );
public void gridChanged() public void gridChanged()
{ {
@ -525,8 +525,8 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
} }
catch (GridAccessException gae) catch (GridAccessException gae)
{ {
items.setInternal( new NullInventory() ); items.setInternal( new NullInventory<IAEItemStack>() );
fluids.setInternal( new NullInventory() ); fluids.setInternal( new NullInventory<IAEFluidStack>() );
} }
notifyNeighbors(); notifyNeighbors();
@ -996,7 +996,7 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
craftingTracker.jobStateChange( link ); craftingTracker.jobStateChange( link );
} }
static final Set<Block> badBlocks = new HashSet(); static final Set<Block> badBlocks = new HashSet<Block>();
public String getTermName() public String getTermName()
{ {

View file

@ -372,8 +372,8 @@ public class MeteoritePlacer
} }
int minBLocks = 200; int minBLocks = 200;
HashSet<Block> validSpawn = new HashSet(); HashSet<Block> validSpawn = new HashSet<Block>();
HashSet<Block> invalidSpawn = new HashSet(); HashSet<Block> invalidSpawn = new HashSet<Block>();
Fallout type = new Fallout(); Fallout type = new Fallout();
@ -694,7 +694,7 @@ public class MeteoritePlacer
ap.addItems( AEApi.instance().blocks().blockSkyStone.stack( (int) (Math.random() * 12) + 1 ) ); ap.addItems( AEApi.instance().blocks().blockSkyStone.stack( (int) (Math.random() * 12) + 1 ) );
break; break;
case 1: case 1:
List<ItemStack> possibles = new LinkedList(); List<ItemStack> possibles = new LinkedList<ItemStack>();
possibles.addAll( OreDictionary.getOres( "nuggetIron" ) ); possibles.addAll( OreDictionary.getOres( "nuggetIron" ) );
possibles.addAll( OreDictionary.getOres( "nuggetCopper" ) ); possibles.addAll( OreDictionary.getOres( "nuggetCopper" ) );
possibles.addAll( OreDictionary.getOres( "nuggetTin" ) ); possibles.addAll( OreDictionary.getOres( "nuggetTin" ) );

View file

@ -79,8 +79,8 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable<Patter
ACCEPT, DECLINE, TEST ACCEPT, DECLINE, TEST
} }
HashSet<TestLookup> failCache = new HashSet(); HashSet<TestLookup> failCache = new HashSet<TestLookup>();
HashSet<TestLookup> passCache = new HashSet(); HashSet<TestLookup> passCache = new HashSet<TestLookup>();
private void markItemAs(int slotIndex, ItemStack i, TestStatus b) private void markItemAs(int slotIndex, ItemStack i, TestStatus b)
{ {
@ -122,8 +122,8 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable<Patter
patternItem = is; patternItem = is;
pattern = AEItemStack.create( is ); pattern = AEItemStack.create( is );
List<IAEItemStack> in = new ArrayList(); List<IAEItemStack> in = new ArrayList<IAEItemStack>();
List<IAEItemStack> out = new ArrayList(); List<IAEItemStack> out = new ArrayList<IAEItemStack>();
for (int x = 0; x < inTag.tagCount(); x++) for (int x = 0; x < inTag.tagCount(); x++)
{ {

View file

@ -44,7 +44,7 @@ public class CompassManager
} }
HashMap<CompassRequest, CompassResult> requests = new HashMap(); HashMap<CompassRequest, CompassResult> requests = new HashMap<CompassRequest, CompassResult>();
public void postResult(long attunement, int x, int y, int z, CompassResult result) public void postResult(long attunement, int x, int y, int z, CompassResult result)
{ {

View file

@ -43,13 +43,13 @@ public class TickHandler
class HandlerRep class HandlerRep
{ {
public Queue<AEBaseTile> tiles = new LinkedList(); public Queue<AEBaseTile> tiles = new LinkedList<AEBaseTile>();
public Collection<Grid> networks = new NetworkList(); public Collection<Grid> networks = new NetworkList();
public void clear() public void clear()
{ {
tiles = new LinkedList(); tiles = new LinkedList<AEBaseTile>();
networks = new NetworkList(); networks = new NetworkList();
} }
@ -83,8 +83,8 @@ public class TickHandler
} }
final private HashMap<Integer, PlayerColor> cliPlayerColors = new HashMap(); final private HashMap<Integer, PlayerColor> cliPlayerColors = new HashMap<Integer, PlayerColor>();
final private HashMap<Integer, PlayerColor> srvPlayerColors = new HashMap(); final private HashMap<Integer, PlayerColor> srvPlayerColors = new HashMap<Integer, PlayerColor>();
public HashMap<Integer, PlayerColor> getPlayerColors() public HashMap<Integer, PlayerColor> getPlayerColors()
{ {
@ -159,7 +159,7 @@ public class TickHandler
{ {
if ( Platform.isServer() ) // for no there is no reason to care about this on the client... if ( Platform.isServer() ) // for no there is no reason to care about this on the client...
{ {
LinkedList<IGridNode> toDestroy = new LinkedList(); LinkedList<IGridNode> toDestroy = new LinkedList<IGridNode>();
for (Grid g : getRepo().networks) for (Grid g : getRepo().networks)
{ {

View file

@ -17,7 +17,7 @@ public class AEGenericSchematicTile extends SchematicTile
public void writeRequirementsToBlueprint(IBuilderContext context, int x, int y, int z) public void writeRequirementsToBlueprint(IBuilderContext context, int x, int y, int z)
{ {
TileEntity tile = context.world().getTileEntity( x, y, z ); TileEntity tile = context.world().getTileEntity( x, y, z );
ArrayList<ItemStack> list = new ArrayList(); ArrayList<ItemStack> list = new ArrayList<ItemStack>();
if ( tile instanceof AEBaseTile ) if ( tile instanceof AEBaseTile )
{ {
AEBaseTile tcb = (AEBaseTile) tile; AEBaseTile tcb = (AEBaseTile) tile;

View file

@ -70,7 +70,7 @@ public class NEICraftingHandler implements IOverlayHandler
if ( ctSlot.getSlotIndex() == col + row * 3 ) if ( ctSlot.getSlotIndex() == col + row * 3 )
{ {
NBTTagList tags = new NBTTagList(); NBTTagList tags = new NBTTagList();
List<ItemStack> list = new LinkedList(); List<ItemStack> list = new LinkedList<ItemStack>();
// prefer pure crystals. // prefer pure crystals.
for (int x = 0; x < positionedStack.items.length; x++) for (int x = 0; x < positionedStack.items.length; x++)

View file

@ -30,8 +30,8 @@ public class NEIWorldCraftingHandler implements ICraftingHandler, IUsageHandler
{ {
HashMap<AEItemDefinition, String> details = new HashMap<AEItemDefinition, String>(); HashMap<AEItemDefinition, String> details = new HashMap<AEItemDefinition, String>();
List<AEItemDefinition> offsets = new LinkedList(); List<AEItemDefinition> offsets = new LinkedList<AEItemDefinition>();
List<PositionedStack> outputs = new LinkedList(); List<PositionedStack> outputs = new LinkedList<PositionedStack>();
ItemStack target; ItemStack target;

View file

@ -49,7 +49,7 @@ import com.google.common.collect.ImmutableSet;
public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent, IUpgradeModule public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent, IUpgradeModule
{ {
HashMap<Integer, MaterialType> dmgToMaterial = new HashMap(); HashMap<Integer, MaterialType> dmgToMaterial = new HashMap<Integer, MaterialType>();
public static ItemMultiMaterial instance; public static ItemMultiMaterial instance;
@ -109,7 +109,7 @@ public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent,
Upgrades u = getType( is ); Upgrades u = getType( is );
if ( u != null ) if ( u != null )
{ {
List<String> textList = new LinkedList(); List<String> textList = new LinkedList<String>();
for (Entry<ItemStack, Integer> j : u.getSupported().entrySet()) for (Entry<ItemStack, Integer> j : u.getSupported().entrySet())
{ {
String name = null; String name = null;

View file

@ -110,7 +110,7 @@ public class ItemFacade extends AEBaseItem implements IFacadeItem, IAlphaPassIte
{ {
if ( subTypes == null ) if ( subTypes == null )
{ {
subTypes = new ArrayList(); subTypes = new ArrayList<ItemStack>();
for (Object blk : Block.blockRegistry) for (Object blk : Block.blockRegistry)
{ {
Block b = (Block) blk; Block b = (Block) blk;
@ -118,7 +118,7 @@ public class ItemFacade extends AEBaseItem implements IFacadeItem, IAlphaPassIte
{ {
Item item = Item.getItemFromBlock( b ); Item item = Item.getItemFromBlock( b );
List<ItemStack> tmpList = new ArrayList(); List<ItemStack> tmpList = new ArrayList<ItemStack>();
b.getSubBlocks( item, b.getCreativeTabToDisplayOn(), tmpList ); b.getSubBlocks( item, b.getCreativeTabToDisplayOn(), tmpList );
for (ItemStack l : tmpList) for (ItemStack l : tmpList)
{ {

View file

@ -43,7 +43,7 @@ public class ItemMultiPart extends AEBaseItem implements IPartItem, IItemGroup
IIcon ico; IIcon ico;
} }
HashMap<Integer, PartTypeIst> dmgToPart = new HashMap(); HashMap<Integer, PartTypeIst> dmgToPart = new HashMap<Integer, PartTypeIst>();
public static ItemMultiPart instance; public static ItemMultiPart instance;
@ -209,7 +209,7 @@ public class ItemMultiPart extends AEBaseItem implements IPartItem, IItemGroup
@Override @Override
public void getSubItems(Item number, CreativeTabs tab, List cList) public void getSubItems(Item number, CreativeTabs tab, List cList)
{ {
List<Entry<Integer, PartTypeIst>> types = new ArrayList( dmgToPart.entrySet() ); List<Entry<Integer, PartTypeIst>> types = new ArrayList<Entry<Integer, PartTypeIst>>( dmgToPart.entrySet() );
Collections.sort( types, new Comparator<Entry<Integer, PartTypeIst>>() { Collections.sort( types, new Comparator<Entry<Integer, PartTypeIst>>() {
@Override @Override

View file

@ -58,7 +58,7 @@ import appeng.util.item.AEItemStack;
public class ToolColorApplicator extends AEBasePoweredItem implements IStorageCell, IItemGroup, IBlockTool, IMouseWheelItem public class ToolColorApplicator extends AEBasePoweredItem implements IStorageCell, IItemGroup, IBlockTool, IMouseWheelItem
{ {
final static HashMap<Integer, AEColor> oreToColor = new HashMap(); final static HashMap<Integer, AEColor> oreToColor = new HashMap<Integer, AEColor>();
static static
{ {

View file

@ -146,7 +146,7 @@ public class ToolEntropyManipulator extends AEBasePoweredItem implements IBlockT
coolDown.put( new Combo( Blocks.flowing_lava, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.obsidian ) ) ); coolDown.put( new Combo( Blocks.flowing_lava, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.obsidian ) ) );
coolDown.put( new Combo( Blocks.grass, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.dirt ) ) ); coolDown.put( new Combo( Blocks.grass, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.dirt ) ) );
List<ItemStack> snowBalls = new ArrayList(); List<ItemStack> snowBalls = new ArrayList<ItemStack>();
snowBalls.add( new ItemStack( Items.snowball ) ); snowBalls.add( new ItemStack( Items.snowball ) );
coolDown.put( new Combo( Blocks.flowing_water, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( null, snowBalls ) ); coolDown.put( new Combo( Blocks.flowing_water, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( null, snowBalls ) );
coolDown.put( new Combo( Blocks.water, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.ice ) ) ); coolDown.put( new Combo( Blocks.water, OreDictionary.WILDCARD_VALUE ), new InWorldToolOperationResult( new ItemStack( Blocks.ice ) ) );

View file

@ -156,7 +156,7 @@ public class GridConnection implements IGridConnection, IPathItem
@Override @Override
public IReadOnlyCollection<IPathItem> getPossibleOptions() public IReadOnlyCollection<IPathItem> getPossibleOptions()
{ {
return new ReadOnlyCollection( Arrays.asList( new IPathItem[] { (IPathItem) a(), (IPathItem) b() } ) ); return new ReadOnlyCollection<IPathItem>( Arrays.asList( (IPathItem) a(), (IPathItem) b() ) );
} }
@Override @Override

View file

@ -39,7 +39,7 @@ public class GridNode implements IGridNode, IPathItem
final static private MENetworkChannelsChanged event = new MENetworkChannelsChanged(); final static private MENetworkChannelsChanged event = new MENetworkChannelsChanged();
final static private int channelCount[] = new int[] { 0, 8, 32 }; final static private int channelCount[] = new int[] { 0, 8, 32 };
final List<IGridConnection> Connections = new LinkedList(); final List<IGridConnection> Connections = new LinkedList<IGridConnection>();
GridStorage myStorage = null; GridStorage myStorage = null;
IGridBlock gridProxy; IGridBlock gridProxy;
@ -167,14 +167,14 @@ public class GridNode implements IGridNode, IPathItem
{ {
Object tracker = new Object(); Object tracker = new Object();
LinkedList<GridNode> nextRun = new LinkedList(); LinkedList<GridNode> nextRun = new LinkedList<GridNode>();
nextRun.add( this ); nextRun.add( this );
visitorIterationNumber = tracker; visitorIterationNumber = tracker;
if ( g instanceof IGridConnectionVisitor ) if ( g instanceof IGridConnectionVisitor )
{ {
LinkedList<IGridConnection> nextConn = new LinkedList(); LinkedList<IGridConnection> nextConn = new LinkedList<IGridConnection>();
IGridConnectionVisitor gcv = (IGridConnectionVisitor) g; IGridConnectionVisitor gcv = (IGridConnectionVisitor) g;
while (!nextRun.isEmpty()) while (!nextRun.isEmpty())
@ -183,7 +183,7 @@ public class GridNode implements IGridNode, IPathItem
gcv.visitConnection( nextConn.poll() ); gcv.visitConnection( nextConn.poll() );
LinkedList<GridNode> thisRun = nextRun; LinkedList<GridNode> thisRun = nextRun;
nextRun = new LinkedList(); nextRun = new LinkedList<GridNode>();
for (GridNode n : thisRun) for (GridNode n : thisRun)
n.visitorConnection( tracker, g, nextRun, nextConn ); n.visitorConnection( tracker, g, nextRun, nextConn );
@ -194,7 +194,7 @@ public class GridNode implements IGridNode, IPathItem
while (!nextRun.isEmpty()) while (!nextRun.isEmpty())
{ {
LinkedList<GridNode> thisRun = nextRun; LinkedList<GridNode> thisRun = nextRun;
nextRun = new LinkedList(); nextRun = new LinkedList<GridNode>();
for (GridNode n : thisRun) for (GridNode n : thisRun)
n.visitorNode( tracker, g, nextRun ); n.visitorNode( tracker, g, nextRun );

View file

@ -22,7 +22,7 @@ public class GridStorage implements IGridStorage
final NBTTagCompound data; final NBTTagCompound data;
public boolean isDirty = false; public boolean isDirty = false;
private WeakHashMap<GridStorage,Boolean> divided = new WeakHashMap(); private WeakHashMap<GridStorage,Boolean> divided = new WeakHashMap<GridStorage,Boolean>();
final GridStorageSearch mySearchEntry; // keep myself in the list until I'm final GridStorageSearch mySearchEntry; // keep myself in the list until I'm
// lost... // lost...

View file

@ -57,7 +57,7 @@ public class NetworkEventBus
class MENetworkEventInfo class MENetworkEventInfo
{ {
private ArrayList<EventMethod> methods = new ArrayList(); private ArrayList<EventMethod> methods = new ArrayList<EventMethod>();
public void Add(Class Event, Class ObjClass, Method ObjMethod) public void Add(Class Event, Class ObjClass, Method ObjMethod)
{ {
@ -71,8 +71,8 @@ public class NetworkEventBus
} }
} }
private static Set<Class> readClasses = new HashSet(); private static Set<Class> readClasses = new HashSet<Class>();
private static Hashtable<Class<? extends MENetworkEvent>, Hashtable<Class, MENetworkEventInfo>> events = new Hashtable(); private static Hashtable<Class<? extends MENetworkEvent>, Hashtable<Class, MENetworkEventInfo>> events = new Hashtable<Class<? extends MENetworkEvent>, Hashtable<Class, MENetworkEventInfo>>();
public void readClass(Class listAs, Class c) public void readClass(Class listAs, Class c)
{ {
@ -95,7 +95,7 @@ public class NetworkEventBus
Hashtable<Class, MENetworkEventInfo> classEvents = events.get( types[0] ); Hashtable<Class, MENetworkEventInfo> classEvents = events.get( types[0] );
if ( classEvents == null ) if ( classEvents == null )
events.put( types[0], classEvents = new Hashtable() ); events.put( types[0], classEvents = new Hashtable<Class, MENetworkEventInfo>() );
MENetworkEventInfo thisEvent = classEvents.get( listAs ); MENetworkEventInfo thisEvent = classEvents.get( listAs );
if ( thisEvent == null ) if ( thisEvent == null )

View file

@ -8,7 +8,7 @@ import java.util.List;
public class NetworkList implements Collection<Grid> public class NetworkList implements Collection<Grid>
{ {
private List<Grid> networks = new LinkedList(); private List<Grid> networks = new LinkedList<Grid>();
@Override @Override
public boolean add(Grid e) public boolean add(Grid e)

View file

@ -68,8 +68,8 @@ import com.google.common.collect.SetMultimap;
public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper, ICellProvider, IMEInventoryHandler public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper, ICellProvider, IMEInventoryHandler
{ {
HashSet<CraftingCPUCluster> cpuClusters = new HashSet(); HashSet<CraftingCPUCluster> cpuClusters = new HashSet<CraftingCPUCluster>();
HashSet<ICraftingProvider> providers = new HashSet(); HashSet<ICraftingProvider> providers = new HashSet<ICraftingProvider>();
private HashMap<IGridNode, ICraftingWatcher> watchers = new HashMap<IGridNode, ICraftingWatcher>(); private HashMap<IGridNode, ICraftingWatcher> watchers = new HashMap<IGridNode, ICraftingWatcher>();
@ -77,14 +77,14 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
IStorageGrid sg; IStorageGrid sg;
IEnergyGrid eg; IEnergyGrid eg;
HashMap<ICraftingPatternDetails, List<ICraftingMedium>> craftingMethods = new HashMap(); HashMap<ICraftingPatternDetails, List<ICraftingMedium>> craftingMethods = new HashMap<ICraftingPatternDetails, List<ICraftingMedium>>();
HashMap<IAEItemStack, ImmutableList<ICraftingPatternDetails>> craftableItems = new HashMap(); HashMap<IAEItemStack, ImmutableList<ICraftingPatternDetails>> craftableItems = new HashMap<IAEItemStack, ImmutableList<ICraftingPatternDetails>>();
HashSet<IAEItemStack> emitableItems = new HashSet(); HashSet<IAEItemStack> emitableItems = new HashSet<IAEItemStack>();
HashMap<String, CraftingLinkNexus> links = new HashMap(); HashMap<String, CraftingLinkNexus> links = new HashMap<String, CraftingLinkNexus>();
boolean updateList = false; boolean updateList = false;
final private SetMultimap<IAEStack, ItemWatcher> interests = HashMultimap.create(); final private SetMultimap<IAEStack, Collection<IAEStack>> interests = HashMultimap.create();
final public GenericInterestManager interestManager = new GenericInterestManager( interests ); final public GenericInterestManager<Collection<IAEStack>> interestManager = new GenericInterestManager<Collection<IAEStack>>( interests );
class ActiveCpuIterator implements Iterator<ICraftingCPU> class ActiveCpuIterator implements Iterator<ICraftingCPU>
{ {
@ -301,7 +301,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
// erase list. // erase list.
craftingMethods.clear(); craftingMethods.clear();
craftableItems = new HashMap(); craftableItems = new HashMap<IAEItemStack, ImmutableList<ICraftingPatternDetails>>();
emitableItems.clear(); emitableItems.clear();
// update the stuff that was in the list... // update the stuff that was in the list...
@ -311,7 +311,7 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
for (ICraftingProvider cp : providers) for (ICraftingProvider cp : providers)
cp.provideCrafting( this ); cp.provideCrafting( this );
HashMap<IAEItemStack, Set<ICraftingPatternDetails>> tmpCraft = new HashMap(); HashMap<IAEItemStack, Set<ICraftingPatternDetails>> tmpCraft = new HashMap<IAEItemStack, Set<ICraftingPatternDetails>>();
// new craftables! // new craftables!
for (ICraftingPatternDetails details : craftingMethods.keySet()) for (ICraftingPatternDetails details : craftingMethods.keySet())

View file

@ -71,15 +71,15 @@ public class EnergyGridCache implements IEnergyGrid
double extra = 0; double extra = 0;
IAEPowerStorage lastProvider; IAEPowerStorage lastProvider;
final Set<IAEPowerStorage> providers = new LinkedHashSet(); final Set<IAEPowerStorage> providers = new LinkedHashSet<IAEPowerStorage>();
IAEPowerStorage lastRequester; IAEPowerStorage lastRequester;
final Set<IAEPowerStorage> requesters = new LinkedHashSet(); final Set<IAEPowerStorage> requesters = new LinkedHashSet<IAEPowerStorage>();
final public TreeSet<EnergyThreshold> interests = new TreeSet<EnergyThreshold>(); final public TreeSet<EnergyThreshold> interests = new TreeSet<EnergyThreshold>();
final private HashMap<IGridNode, IEnergyWatcher> watchers = new HashMap<IGridNode, IEnergyWatcher>(); final private HashMap<IGridNode, IEnergyWatcher> watchers = new HashMap<IGridNode, IEnergyWatcher>();
final private Set<IEnergyGrid> localSeen = new HashSet(); final private Set<IEnergyGrid> localSeen = new HashSet<IEnergyGrid>();
private double buffer() private double buffer()
{ {

View file

@ -39,10 +39,10 @@ public class GridStorageCache implements IStorageGrid
{ {
final private SetMultimap<IAEStack, ItemWatcher> interests = HashMultimap.create(); final private SetMultimap<IAEStack, ItemWatcher> interests = HashMultimap.create();
final public GenericInterestManager interestManager = new GenericInterestManager( interests ); final public GenericInterestManager<ItemWatcher> interestManager = new GenericInterestManager<ItemWatcher>( interests );
final HashSet<ICellProvider> activeCellProviders = new HashSet(); final HashSet<ICellProvider> activeCellProviders = new HashSet<ICellProvider>();
final HashSet<ICellProvider> inactiveCellProviders = new HashSet(); final HashSet<ICellProvider> inactiveCellProviders = new HashSet<ICellProvider>();
final public IGrid myGrid; final public IGrid myGrid;
private NetworkInventoryHandler<IAEItemStack> myItemNetwork; private NetworkInventoryHandler<IAEItemStack> myItemNetwork;
@ -95,7 +95,7 @@ public class GridStorageCache implements IStorageGrid
private class CellChangeTracker private class CellChangeTracker
{ {
List<CellChangeTrackerRecord> data = new LinkedList(); List<CellChangeTrackerRecord> data = new LinkedList<CellChangeTrackerRecord>();
public void postChanges(StorageChannel channel, int i, IMEInventoryHandler<? extends IAEStack> h, BaseActionSource actionSrc) public void postChanges(StorageChannel channel, int i, IMEInventoryHandler<? extends IAEStack> h, BaseActionSource actionSrc)
{ {

View file

@ -22,7 +22,7 @@ import com.google.common.collect.Multimap;
public class P2PCache implements IGridCache public class P2PCache implements IGridCache
{ {
final private HashMap<Long, PartP2PTunnel> inputs = new HashMap(); final private HashMap<Long, PartP2PTunnel> inputs = new HashMap<Long, PartP2PTunnel>();
final private Multimap<Long, PartP2PTunnel> outputs = LinkedHashMultimap.create(); final private Multimap<Long, PartP2PTunnel> outputs = LinkedHashMultimap.create();
final private TunnelCollection NullColl = new TunnelCollection<PartP2PTunnel>( null, null ); final private TunnelCollection NullColl = new TunnelCollection<PartP2PTunnel>( null, null );

View file

@ -43,7 +43,7 @@ public class PathGridCache implements IPathingGrid
boolean updateNetwork = true; boolean updateNetwork = true;
boolean booting = false; boolean booting = false;
final LinkedList<PathSegment> active = new LinkedList(); final LinkedList<PathSegment> active = new LinkedList<PathSegment>();
ControllerState controllerState = ControllerState.NO_CONTROLLER; ControllerState controllerState = ControllerState.NO_CONTROLLER;
@ -53,13 +53,13 @@ public class PathGridCache implements IPathingGrid
public int channelsInUse = 0; public int channelsInUse = 0;
int lastChannels = 0; int lastChannels = 0;
final Set<TileController> controllers = new HashSet(); final Set<TileController> controllers = new HashSet<TileController>();
final Set<IGridNode> requireChannels = new HashSet(); final Set<IGridNode> requireChannels = new HashSet<IGridNode>();
final Set<IGridNode> blockDense = new HashSet(); final Set<IGridNode> blockDense = new HashSet<IGridNode>();
final IGrid myGrid; final IGrid myGrid;
private HashSet<IPathItem> semiOpen = new HashSet(); private HashSet<IPathItem> semiOpen = new HashSet<IPathItem>();
private HashSet<IPathItem> closedList = new HashSet(); private HashSet<IPathItem> closedList = new HashSet<IPathItem>();
public int channelsByBlocks = 0; public int channelsByBlocks = 0;
public double channelPowerUsage = 0.0; public double channelPowerUsage = 0.0;

View file

@ -22,7 +22,7 @@ import appeng.me.GridNode;
public class SecurityCache implements IGridCache, ISecurityGrid public class SecurityCache implements IGridCache, ISecurityGrid
{ {
final private List<ISecurityProvider> securityProvider = new ArrayList(); final private List<ISecurityProvider> securityProvider = new ArrayList<ISecurityProvider>();
final private HashMap<Integer, EnumSet<SecurityPermissions>> playerPerms = new HashMap<Integer, EnumSet<SecurityPermissions>>(); final private HashMap<Integer, EnumSet<SecurityPermissions>> playerPerms = new HashMap<Integer, EnumSet<SecurityPermissions>>();
public SecurityCache(IGrid g) { public SecurityCache(IGrid g) {

View file

@ -29,8 +29,8 @@ public class SpatialPylonCache implements IGridCache, ISpatialCache
DimensionalCoord captureMax; DimensionalCoord captureMax;
boolean isValid = false; boolean isValid = false;
List<TileSpatialIOPort> ioPorts = new LinkedList(); List<TileSpatialIOPort> ioPorts = new LinkedList<TileSpatialIOPort>();
HashMap<SpatialPylonCluster, SpatialPylonCluster> clusters = new HashMap(); HashMap<SpatialPylonCluster, SpatialPylonCluster> clusters = new HashMap<SpatialPylonCluster, SpatialPylonCluster>();
boolean needsUpdate = false; boolean needsUpdate = false;
@ -80,8 +80,8 @@ public class SpatialPylonCache implements IGridCache, ISpatialCache
double minPower = 0; double minPower = 0;
double maxPower = 0; double maxPower = 0;
clusters = new HashMap(); clusters = new HashMap<SpatialPylonCluster, SpatialPylonCluster>();
ioPorts = new LinkedList(); ioPorts = new LinkedList<TileSpatialIOPort>();
for (IGridNode gm : grid.getMachines( TileSpatialIOPort.class )) for (IGridNode gm : grid.getMachines( TileSpatialIOPort.class ))
{ {

View file

@ -10,7 +10,7 @@ public class Connections implements Callable
{ {
final private PartP2PTunnelME me; final private PartP2PTunnelME me;
final public HashMap<IGridNode, TunnelConnection> connections = new HashMap(); final public HashMap<IGridNode, TunnelConnection> connections = new HashMap<IGridNode, TunnelConnection>();
public boolean create = false; public boolean create = false;
public boolean destroy = false; public boolean destroy = false;

View file

@ -21,8 +21,8 @@ public class TunnelCollection<T extends PartP2PTunnel> implements Iterable<T>
public Iterator<T> iterator() public Iterator<T> iterator()
{ {
if ( tunnelSources == null ) if ( tunnelSources == null )
return new NullIterator(); return new NullIterator<T>();
return new TunnelIterator( tunnelSources, clz ); return new TunnelIterator<T>( tunnelSources, clz );
} }
public void setSource(Collection<T> c) public void setSource(Collection<T> c)

View file

@ -83,7 +83,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
IItemList<IAEItemStack> waitingFor = AEApi.instance().storage().createItemList(); IItemList<IAEItemStack> waitingFor = AEApi.instance().storage().createItemList();
// instance sate // instance sate
final private LinkedList<TileCraftingTile> tiles = new LinkedList(); final private LinkedList<TileCraftingTile> tiles = new LinkedList<TileCraftingTile>();
final private LinkedList<TileCraftingTile> storage = new LinkedList<TileCraftingTile>(); final private LinkedList<TileCraftingTile> storage = new LinkedList<TileCraftingTile>();
final private LinkedList<TileCraftingMonitorTile> status = new LinkedList<TileCraftingMonitorTile>(); final private LinkedList<TileCraftingMonitorTile> status = new LinkedList<TileCraftingMonitorTile>();

View file

@ -23,7 +23,7 @@ public class SpatialPylonCluster implements IAECluster
public Axis currentAxis = Axis.UNFORMED; public Axis currentAxis = Axis.UNFORMED;
final List<TileSpatialPylon> line = new ArrayList(); final List<TileSpatialPylon> line = new ArrayList<TileSpatialPylon>();
public boolean isValid; public boolean isValid;
public boolean hasPower; public boolean hasPower;
public boolean hasChannel; public boolean hasChannel;

View file

@ -50,7 +50,7 @@ public class EnergyWatcher implements IEnergyWatcher
EnergyGridCache gsc; EnergyGridCache gsc;
IEnergyWatcherHost myObject; IEnergyWatcherHost myObject;
HashSet<EnergyThreshold> myInterests = new HashSet(); HashSet<EnergyThreshold> myInterests = new HashSet<EnergyThreshold>();
public void post(EnergyGridCache energyGridCache) public void post(EnergyGridCache energyGridCache)
{ {

View file

@ -35,7 +35,7 @@ public class GenericInterestManager<T>
public void enableTransactions() public void enableTransactions()
{ {
if ( transDepth == 0 ) if ( transDepth == 0 )
transactions = new LinkedList(); transactions = new LinkedList<SavedTransactions>();
transDepth++; transDepth++;
} }

View file

@ -25,7 +25,7 @@ public class PathSegment
PathGridCache pgc; PathGridCache pgc;
public PathSegment(PathGridCache myPGC, List open, Set semiOpen, Set closed) public PathSegment(PathGridCache myPGC, List<IPathItem> open, Set<IPathItem> semiOpen, Set<IPathItem> closed)
{ {
this.open = open; this.open = open;
this.semiOpen = semiOpen; this.semiOpen = semiOpen;
@ -41,7 +41,7 @@ public class PathSegment
public boolean step() public boolean step()
{ {
List<IPathItem> oldOpen = open; List<IPathItem> oldOpen = open;
open = new LinkedList(); open = new LinkedList<IPathItem>();
for (IPathItem i : oldOpen) for (IPathItem i : oldOpen)
{ {

View file

@ -335,7 +335,7 @@ public class CellInventory implements ICellInventory
return 8 - div; return 8 - div;
} }
private static HashSet<Integer> blackList = new HashSet(); private static HashSet<Integer> blackList = new HashSet<Integer>();
public static void addBasicBlackList(int itemID, int Meta) public static void addBasicBlackList(int itemID, int Meta)
{ {

View file

@ -50,7 +50,7 @@ public class ItemWatcher implements IStackWatcher
GridStorageCache gsc; GridStorageCache gsc;
IStackWatcherHost myObject; IStackWatcherHost myObject;
HashSet<IAEStack> myInterests = new HashSet(); HashSet<IAEStack> myInterests = new HashSet<IAEStack>();
public ItemWatcher(GridStorageCache cache, IStackWatcherHost host) { public ItemWatcher(GridStorageCache cache, IStackWatcherHost host) {
gsc = cache; gsc = cache;

View file

@ -184,7 +184,7 @@ public class MEIInventoryWrapper implements IMEInventory<IAEItemStack>
} }
@Override @Override
public IItemList<IAEItemStack> getAvailableItems(IItemList out) public IItemList<IAEItemStack> getAvailableItems(IItemList<IAEItemStack> out)
{ {
for (int x = 0; x < target.getSizeInventory(); x++) for (int x = 0; x < target.getSizeInventory(); x++)
{ {

View file

@ -52,7 +52,7 @@ public class MEMonitorIInventory implements IMEInventory<IAEItemStack>, IMEMonit
final TreeMap<Integer, CachedItemStack> memory; final TreeMap<Integer, CachedItemStack> memory;
final IItemList<IAEItemStack> list = AEApi.instance().storage().createItemList(); final IItemList<IAEItemStack> list = AEApi.instance().storage().createItemList();
final HashMap<IMEMonitorHandlerReceiver<IAEItemStack>, Object> listeners = new HashMap(); final HashMap<IMEMonitorHandlerReceiver<IAEItemStack>, Object> listeners = new HashMap<IMEMonitorHandlerReceiver<IAEItemStack>, Object>();
public BaseActionSource mySource; public BaseActionSource mySource;
public StorageFilter mode = StorageFilter.EXTRACTABLE_ONLY; public StorageFilter mode = StorageFilter.EXTRACTABLE_ONLY;
@ -72,7 +72,7 @@ public class MEMonitorIInventory implements IMEInventory<IAEItemStack>, IMEMonit
public MEMonitorIInventory(InventoryAdaptor adaptor) public MEMonitorIInventory(InventoryAdaptor adaptor)
{ {
this.adaptor = adaptor; this.adaptor = adaptor;
memory = new TreeMap(); memory = new TreeMap<Integer, CachedItemStack>();
} }
@Override @Override

View file

@ -18,7 +18,7 @@ import appeng.util.inv.ItemListIgnoreCrafting;
public class MEMonitorPassThrough<T extends IAEStack<T>> extends MEPassThrough<T> implements IMEMonitor<T>, IMEMonitorHandlerReceiver<T> public class MEMonitorPassThrough<T extends IAEStack<T>> extends MEPassThrough<T> implements IMEMonitor<T>, IMEMonitorHandlerReceiver<T>
{ {
HashMap<IMEMonitorHandlerReceiver<T>, Object> listeners = new HashMap(); HashMap<IMEMonitorHandlerReceiver<T>, Object> listeners = new HashMap<IMEMonitorHandlerReceiver<T>, Object>();
IMEMonitor<T> monitor; IMEMonitor<T> monitor;
public BaseActionSource changeSource; public BaseActionSource changeSource;

View file

@ -26,7 +26,7 @@ import appeng.util.ItemSorters;
public class NetworkInventoryHandler<T extends IAEStack<T>> implements IMEInventoryHandler<T> public class NetworkInventoryHandler<T extends IAEStack<T>> implements IMEInventoryHandler<T>
{ {
private final static Comparator prioritySorter = new Comparator<Integer>() { private final static Comparator<Integer> prioritySorter = new Comparator<Integer>() {
@Override @Override
public int compare(Integer o1, Integer o2) public int compare(Integer o1, Integer o2)
@ -45,7 +45,7 @@ public class NetworkInventoryHandler<T extends IAEStack<T>> implements IMEInvent
public NetworkInventoryHandler(StorageChannel chan, SecurityCache security) { public NetworkInventoryHandler(StorageChannel chan, SecurityCache security) {
myChannel = chan; myChannel = chan;
this.security = security; this.security = security;
priorityInventory = new TreeMap( prioritySorter ); // TreeMultimap.create( prioritySorter, hashSorter ); priorityInventory = new TreeMap<Integer, List<IMEInventoryHandler<T>>>( prioritySorter ); // TreeMultimap.create( prioritySorter, hashSorter );
} }
public void addNewStorage(IMEInventoryHandler<T> h) public void addNewStorage(IMEInventoryHandler<T> h)
@ -53,7 +53,7 @@ public class NetworkInventoryHandler<T extends IAEStack<T>> implements IMEInvent
int priority = h.getPriority(); int priority = h.getPriority();
List<IMEInventoryHandler<T>> list = priorityInventory.get( priority ); List<IMEInventoryHandler<T>> list = priorityInventory.get( priority );
if ( list == null ) if ( list == null )
priorityInventory.put( priority, list = new ArrayList() ); priorityInventory.put( priority, list = new ArrayList<IMEInventoryHandler<T>>() );
list.add( h ); list.add( h );
} }

View file

@ -453,7 +453,7 @@ public class AEBasePart implements IPart, IGridProxyable, IActionHost, IUpgradea
{ {
if ( is.stackSize > 0 ) if ( is.stackSize > 0 )
{ {
List<ItemStack> items = new ArrayList(); List<ItemStack> items = new ArrayList<ItemStack>();
items.add( is.copy() ); items.add( is.copy() );
host.removePart( side, false ); host.removePart( side, false );
Platform.spawnDrops( tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord, items ); Platform.spawnDrops( tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord, items );

View file

@ -321,7 +321,7 @@ public class CableBusContainer extends CableBusStorage implements AEMultiTile, I
return null; return null;
} }
private static final ThreadLocal<Boolean> isLoading = new ThreadLocal(); private static final ThreadLocal<Boolean> isLoading = new ThreadLocal<Boolean>();
public static boolean isLoading() public static boolean isLoading()
{ {
@ -908,7 +908,7 @@ public class CableBusContainer extends CableBusStorage implements AEMultiTile, I
{ {
if ( getCenter() == null ) if ( getCenter() == null )
{ {
List<ItemStack> facades = new LinkedList(); List<ItemStack> facades = new LinkedList<ItemStack>();
IFacadeContainer fc = getFacadeContainer(); IFacadeContainer fc = getFacadeContainer();
for (ForgeDirection d : ForgeDirection.VALID_DIRECTIONS) for (ForgeDirection d : ForgeDirection.VALID_DIRECTIONS)

View file

@ -142,7 +142,7 @@ public class PartPlacement
MovingObjectPosition mop = block.collisionRayTrace( world, x, y, z, dir.a, dir.b ); MovingObjectPosition mop = block.collisionRayTrace( world, x, y, z, dir.a, dir.b );
if ( mop != null ) if ( mop != null )
{ {
List<ItemStack> is = new LinkedList(); List<ItemStack> is = new LinkedList<ItemStack>();
SelectedPart sp = selectPart( player, host, mop.hitVec.addVector( -mop.blockX, -mop.blockY, -mop.blockZ ) ); SelectedPart sp = selectPart( player, host, mop.hitVec.addVector( -mop.blockX, -mop.blockY, -mop.blockZ ) );
if ( sp.part != null ) if ( sp.part != null )

View file

@ -170,7 +170,7 @@ public class PartAnnihilationPlane extends PartBasicState implements IGridTickab
} }
boolean breaking = false; boolean breaking = false;
LinkedList<IAEItemStack> Buffer = new LinkedList(); LinkedList<IAEItemStack> Buffer = new LinkedList<IAEItemStack>();
BaseActionSource mySrc = new MachineSource( this ); BaseActionSource mySrc = new MachineSource( this );
@Override @Override

View file

@ -247,11 +247,11 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
{ {
if ( proxy.isActive() && channel == StorageChannel.ITEMS ) if ( proxy.isActive() && channel == StorageChannel.ITEMS )
{ {
List<IMEInventoryHandler> Handler = new ArrayList( 1 ); List<IMEInventoryHandler> Handler = new ArrayList<IMEInventoryHandler>( 1 );
Handler.add( myHandler ); Handler.add( myHandler );
return Handler; return Handler;
} }
return new ArrayList(); return new ArrayList<IMEInventoryHandler>();
} }
@Override @Override

View file

@ -42,7 +42,7 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
List<ISidedInventory> inventories = null; List<ISidedInventory> inventories = null;
List<InvSot> slots = null; List<InvSot> slots = null;
inventories = new ArrayList(); inventories = new ArrayList<ISidedInventory>();
int slotCount = 0; int slotCount = 0;
for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)

View file

@ -236,7 +236,7 @@ public class PartToggleBus extends PartBasicState
{ {
if ( is.stackSize > 0 ) if ( is.stackSize > 0 )
{ {
List<ItemStack> items = new ArrayList(); List<ItemStack> items = new ArrayList<ItemStack>();
items.add( is.copy() ); items.add( is.copy() );
host.removePart( side, false ); host.removePart( side, false );
Platform.spawnDrops( tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord, items ); Platform.spawnDrops( tile.getWorldObj(), tile.xCoord, tile.yCoord, tile.zCoord, items );

View file

@ -144,7 +144,7 @@ public class PartP2PIC2Power extends PartP2PTunnel<PartP2PIC2Power> implements i
if ( outs.isEmpty() ) if ( outs.isEmpty() )
return amount; return amount;
LinkedList<PartP2PIC2Power> Options = new LinkedList(); LinkedList<PartP2PIC2Power> Options = new LinkedList<PartP2PIC2Power>();
for (PartP2PIC2Power o : outs) for (PartP2PIC2Power o : outs)
{ {
if ( o.OutputEnergyA <= 0.01 ) if ( o.OutputEnergyA <= 0.01 )

View file

@ -64,7 +64,7 @@ public class GroupIngredient implements IIngredient
if ( isInside ) if ( isInside )
return new ItemStack[0]; return new ItemStack[0];
List<ItemStack> out = new LinkedList(); List<ItemStack> out = new LinkedList<ItemStack>();
isInside = true; isInside = true;
try try
{ {

View file

@ -51,7 +51,7 @@ public class IngredientSet implements IIngredient
if ( isInside ) if ( isInside )
return new ItemStack[0]; return new ItemStack[0];
List<ItemStack> out = new LinkedList(); List<ItemStack> out = new LinkedList<ItemStack>();
out.addAll( items ); out.addAll( items );
if ( out.size() == 0 ) if ( out.size() == 0 )

View file

@ -20,6 +20,6 @@ public class RecipeData
public boolean exceptions = true; public boolean exceptions = true;
public boolean erroronmissing = true; public boolean erroronmissing = true;
public Set<String> knownItem = new HashSet(); public Set<String> knownItem = new HashSet<String>();
} }

View file

@ -35,13 +35,13 @@ public class Inscribe implements ICraftHandler, IWebsiteSerializer
final public ItemStack plateB; final public ItemStack plateB;
final public ItemStack output; final public ItemStack output;
}; }
public boolean usePlates = false; public boolean usePlates = false;
public static HashSet<ItemStack> plates = new HashSet(); public static HashSet<ItemStack> plates = new HashSet<ItemStack>();
public static HashSet<ItemStack> inputs = new HashSet(); public static HashSet<ItemStack> inputs = new HashSet<ItemStack>();
public static LinkedList<InscriberRecipe> recipes = new LinkedList(); public static LinkedList<InscriberRecipe> recipes = new LinkedList<InscriberRecipe>();
IIngredient imprintable; IIngredient imprintable;

View file

@ -42,7 +42,7 @@ public class ServerHelper extends CommonHelper
return server.getConfigurationManager().playerEntityList; return server.getConfigurationManager().playerEntityList;
} }
return new ArrayList(); return new ArrayList<EntityPlayer>();
} }
@Override @Override

View file

@ -234,7 +234,7 @@ public class CompassService implements ThreadFactory
return executor.submit( new CMUpdatePost( w, cx, cz, cdy, false ) ); return executor.submit( new CMUpdatePost( w, cx, cz, cdy, false ) );
} }
HashMap<World, CompassReader> worldSet = new HashMap(); HashMap<World, CompassReader> worldSet = new HashMap<World, CompassReader>();
ExecutorService executor; ExecutorService executor;
final File rootFolder; final File rootFolder;

View file

@ -8,7 +8,7 @@ import net.minecraft.world.World;
public class CompassReader public class CompassReader
{ {
HashMap<Long, CompassRegion> regions = new HashMap(); HashMap<Long, CompassRegion> regions = new HashMap<Long, CompassRegion>();
final int id; final int id;
final File rootFolder; final File rootFolder;

View file

@ -159,7 +159,7 @@ public class CachedPlane
for (int cx = 0; cx < cx_size; cx++) for (int cx = 0; cx < cx_size; cx++)
for (int cz = 0; cz < cz_size; cz++) for (int cz = 0; cz < cz_size; cz++)
{ {
LinkedList<Entry<ChunkPosition, TileEntity>> rwarTiles = new LinkedList(); LinkedList<Entry<ChunkPosition, TileEntity>> rwarTiles = new LinkedList<Entry<ChunkPosition, TileEntity>>();
LinkedList<ChunkPosition> deadTiles = new LinkedList<ChunkPosition>(); LinkedList<ChunkPosition> deadTiles = new LinkedList<ChunkPosition>();
Chunk c = w.getChunkFromChunkCoords( minCX + cx, minCZ + cz ); Chunk c = w.getChunkFromChunkCoords( minCX + cx, minCZ + cz );

View file

@ -40,12 +40,12 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
{ {
static private final HashMap<Class, EnumMap<TileEventType, List<AETileEventHandler>>> handlers = new HashMap<Class, EnumMap<TileEventType, List<AETileEventHandler>>>(); static private final HashMap<Class, EnumMap<TileEventType, List<AETileEventHandler>>> handlers = new HashMap<Class, EnumMap<TileEventType, List<AETileEventHandler>>>();
static private final HashMap<Class, ItemStackSrc> myItem = new HashMap(); static private final HashMap<Class, ItemStackSrc> myItem = new HashMap<Class, ItemStackSrc>();
private ForgeDirection forward = ForgeDirection.UNKNOWN; private ForgeDirection forward = ForgeDirection.UNKNOWN;
private ForgeDirection up = ForgeDirection.UNKNOWN; private ForgeDirection up = ForgeDirection.UNKNOWN;
public static ThreadLocal<WeakReference<AEBaseTile>> dropNoItems = new ThreadLocal(); public static ThreadLocal<WeakReference<AEBaseTile>> dropNoItems = new ThreadLocal<WeakReference<AEBaseTile>>();
public void disableDrops() public void disableDrops()
{ {
@ -122,7 +122,7 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
List<AETileEventHandler> list = handlerSet.get( value ); List<AETileEventHandler> list = handlerSet.get( value );
if ( list == null ) if ( list == null )
handlerSet.put( value, list = new ArrayList() ); handlerSet.put( value, list = new ArrayList<AETileEventHandler>() );
list.add( new AETileEventHandler( m, value ) ); list.add( new AETileEventHandler( m, value ) );
} }

View file

@ -45,7 +45,7 @@ public class TileGrinder extends AEBaseInvTile implements ICrankable
wc.add( getForward(), 1 ); wc.add( getForward(), 1 );
List<ItemStack> out = new ArrayList(); List<ItemStack> out = new ArrayList<ItemStack>();
out.add( notAdded ); out.add( notAdded );
Platform.spawnDrops( worldObj, wc.x, wc.y, wc.z, out ); Platform.spawnDrops( worldObj, wc.x, wc.y, wc.z, out );

View file

@ -229,7 +229,7 @@ public class TileCharger extends AENetworkPowerTile implements ICrankable
} }
else else
{ {
List<ItemStack> drops = new ArrayList(); List<ItemStack> drops = new ArrayList<ItemStack>();
drops.add( myItem ); drops.add( myItem );
setInventorySlotContents( 0, null ); setInventorySlotContents( 0, null );
Platform.spawnDrops( worldObj, xCoord + getForward().offsetX, yCoord + getForward().offsetY, zCoord + getForward().offsetZ, drops ); Platform.spawnDrops( worldObj, xCoord + getForward().offsetX, yCoord + getForward().offsetY, zCoord + getForward().offsetZ, drops );

View file

@ -182,7 +182,7 @@ public class TilePaint extends AEBaseTile
boolean lit = ipb.isLumen( type ); boolean lit = ipb.isLumen( type );
if ( dots == null ) if ( dots == null )
dots = new ArrayList(); dots = new ArrayList<Splotch>();
if ( dots.size() > 20 ) if ( dots.size() > 20 )
dots.remove( 0 ); dots.remove( 0 );

View file

@ -48,8 +48,8 @@ public class TileDrive extends AENetworkInvTile implements IChestOrDrive, IPrior
boolean isCached = false; boolean isCached = false;
ICellHandler handlersBySlot[] = new ICellHandler[10]; ICellHandler handlersBySlot[] = new ICellHandler[10];
DriveWatcher<IAEItemStack> invBySlot[] = new DriveWatcher[10]; DriveWatcher<IAEItemStack> invBySlot[] = new DriveWatcher[10];
List<MEInventoryHandler> items = new LinkedList(); List<MEInventoryHandler> items = new LinkedList<MEInventoryHandler>();
List<MEInventoryHandler> fluids = new LinkedList(); List<MEInventoryHandler> fluids = new LinkedList<MEInventoryHandler>();
BaseActionSource mySrc; BaseActionSource mySrc;
long lastStateChange = 0; long lastStateChange = 0;

View file

@ -10,7 +10,7 @@ import appeng.core.AELog;
public class ConfigManager implements IConfigManager public class ConfigManager implements IConfigManager
{ {
HashMap<Enum, Enum> Settings = new HashMap(); HashMap<Enum, Enum> Settings = new HashMap<Enum, Enum>();
IConfigManagerHost target; IConfigManagerHost target;
public ConfigManager(IConfigManagerHost tile) { public ConfigManager(IConfigManagerHost tile) {

View file

@ -55,7 +55,7 @@ public abstract class InventoryAdaptor implements Iterable<ItemSlot>
} }
else if ( te instanceof ArrayList ) else if ( te instanceof ArrayList )
{ {
return new AdaptorList( (ArrayList) te ); return new AdaptorList( (ArrayList<ItemStack>) te );
} }
else if ( bs != null && bs.isStorageCrate( te ) ) else if ( bs != null && bs.isStorageCrate( te ) )
{ {

Some files were not shown because too many files have changed in this diff Show more