This executes all of the Runnable's stored within API.shutdown_tasks NOT TO BE REFERENCED BY MODS
()
| 247 | */ |
| 248 | |
| 249 | static void executeShutdownTasks() { |
| 250 | if (API.shutdown_tasks.entrySet().size() >= 1) { |
| 251 | API.println("Executing Shutdown Tasks.."); |
| 252 | for (Map.Entry<String, Runnable> entry : API.shutdown_tasks.entrySet()) { |
| 253 | API.println(String.format("Executing %s..", entry.getKey())); |
| 254 | entry.getValue().run(); |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * This adds the .class files from an addon.eca (ExitCode Addon) to the game classpath. |
no test coverage detected