mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 06:24:43 +00:00
Use lambdas for short anonymous methods
This commit is contained in:
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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user