MCPcopy Create free account
hub / github.com/TheCyaniteProject/exit_code_java / executeShutdownTasks

Method executeShutdownTasks

src/main/java/exitcode/API.java:249–257  ·  view source on GitHub ↗

This executes all of the Runnable's stored within API.shutdown_tasks NOT TO BE REFERENCED BY MODS

()

Source from the content-addressed store, hash-verified

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.

Callers 1

preExitTasksMethod · 0.95

Calls 2

printlnMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected