mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Java 7 and 8 cleanup
Diamond operator <> Lambdas and method references
This commit is contained in:
1 parent
3db03edbc9
commit
b72d6efab3
234 files changed
+1614
-2253
No files matched your search
@@ -14,12 +14,12 @@ import net.minecraft.world.World;
|
||||
|
||||
public class MultiblockManager<T extends SynchronizedData<T>>
|
||||
{
|
||||
private static Set<MultiblockManager> managers = new HashSet<MultiblockManager>();
|
||||
private static Set<MultiblockManager> managers = new HashSet<>();
|
||||
|
||||
public String name;
|
||||
|
||||
/** A map containing references to all multiblock inventory caches. */
|
||||
public Map<String, MultiblockCache<T>> inventories = new HashMap<String, MultiblockCache<T>>();
|
||||
public Map<String, MultiblockCache<T>> inventories = new HashMap<>();
|
||||
|
||||
public MultiblockManager(String s)
|
||||
{
|
||||
@@ -72,8 +72,8 @@ public class MultiblockManager<T extends SynchronizedData<T>>
|
||||
|
||||
public void tickSelf(World world)
|
||||
{
|
||||
ArrayList<String> idsToKill = new ArrayList<String>();
|
||||
HashMap<String, HashSet<Coord4D>> tilesToKill = new HashMap<String, HashSet<Coord4D>>();
|
||||
ArrayList<String> idsToKill = new ArrayList<>();
|
||||
HashMap<String, HashSet<Coord4D>> tilesToKill = new HashMap<>();
|
||||
|
||||
for(Map.Entry<String, MultiblockCache<T>> entry : inventories.entrySet())
|
||||
{
|
||||
@@ -89,7 +89,7 @@ public class MultiblockManager<T extends SynchronizedData<T>>
|
||||
{
|
||||
if(!tilesToKill.containsKey(inventoryID))
|
||||
{
|
||||
tilesToKill.put(inventoryID, new HashSet<Coord4D>());
|
||||
tilesToKill.put(inventoryID, new HashSet<>());
|
||||
}
|
||||
|
||||
tilesToKill.get(inventoryID).add(obj);
|
||||
|
||||
Reference in new issue
Block a user