mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +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
@@ -32,7 +32,7 @@ public class RenderConfigurableMachine<S extends TileEntity & ISideConfiguration
|
||||
{
|
||||
private Minecraft mc = FMLClientHandler.instance().getClient();
|
||||
|
||||
private HashMap<EnumFacing, HashMap<TransmissionType, DisplayInteger>> cachedOverlays = new HashMap<EnumFacing, HashMap<TransmissionType, DisplayInteger>>();
|
||||
private HashMap<EnumFacing, HashMap<TransmissionType, DisplayInteger>> cachedOverlays = new HashMap<>();
|
||||
|
||||
public RenderConfigurableMachine()
|
||||
{
|
||||
@@ -119,7 +119,7 @@ public class RenderConfigurableMachine<S extends TileEntity & ISideConfiguration
|
||||
cachedOverlays.get(side).put(type, display);
|
||||
}
|
||||
else {
|
||||
HashMap<TransmissionType, DisplayInteger> map = new HashMap<TransmissionType, DisplayInteger>();
|
||||
HashMap<TransmissionType, DisplayInteger> map = new HashMap<>();
|
||||
map.put(type, display);
|
||||
cachedOverlays.put(side, map);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user