Java 7 and 8 cleanup

Diamond operator <>
Lambdas and method references
This commit is contained in:
Tom Elfring committed 2017-08-05 17:50:38 +02:00
1 parent 3db03edbc9
commit b72d6efab3
234 files changed
+1614 -2253

No files matched your search

@@ -91,11 +91,11 @@ public class ClientTickHandler
public static final String DONATE_CAPE = "https://dl.dropboxusercontent.com/u/90411166/donate.png";
public static final String AIDAN_CAPE = "https://dl.dropboxusercontent.com/u/90411166/aidan.png";
private Map<String, CapeBufferDownload> mikeDownload = new HashMap<String, CapeBufferDownload>();
private Map<String, CapeBufferDownload> donateDownload = new HashMap<String, CapeBufferDownload>();
private Map<String, CapeBufferDownload> aidanDownload = new HashMap<String, CapeBufferDownload>();
private Map<String, CapeBufferDownload> mikeDownload = new HashMap<>();
private Map<String, CapeBufferDownload> donateDownload = new HashMap<>();
private Map<String, CapeBufferDownload> aidanDownload = new HashMap<>();
public static Set<IClientTicker> tickingSet = new HashSet<IClientTicker>();
public static Set<IClientTicker> tickingSet = new HashSet<>();
public static Map<EntityPlayer, TeleportData> portableTeleports = new HashMap<>();
public static int wheelStatus = 0;
@@ -499,13 +499,7 @@ public class ClientTickHandler
public static void killDeadNetworks()
{
for(Iterator<IClientTicker> iter = tickingSet.iterator(); iter.hasNext();)
{
if(!iter.next().needsTicks())
{
iter.remove();
}
}
tickingSet.removeIf(iClientTicker -> !iClientTicker.needsTicks());
}
public static boolean isJetpackOn(EntityPlayer player)