Use lambdas for short anonymous methods

This commit is contained in:
mezz committed 2017-06-27 23:18:09 -07:00
1 parent 93025510ae
commit 9675585891
16 files changed
+23 -149

No files matched your search

@@ -50,13 +50,6 @@ public class CapabilityEnergy
((EnergyStorage)instance).energy = ((NBTTagInt)nbt).getInt();
}
},
new Callable<IEnergyStorage>()
{
@Override
public IEnergyStorage call() throws Exception
{
return new EnergyStorage(1000);
}
});
() -> new EnergyStorage(1000));
}
}