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

Method addShutdownTask

src/main/java/exitcode/API.java:130–132  ·  view source on GitHub ↗

Adds a new function to desktop_tasks2. These are secondary Runnable's to be executed after the Desktop loads. (Apps and other Addons go here, to make sure they load correctly after desktop mods) @param uniqueObjectIdentifier This is a String ID that should be unique to a single function, or other r

(String uniqueObjectIdentifier, Runnable function)

Source from the content-addressed store, hash-verified

128 * @param function This is the Runnable to be executed.
129 */
130 public static void addShutdownTask(String uniqueObjectIdentifier, Runnable function) {
131 API.shutdown_tasks.put(uniqueObjectIdentifier, function);
132 }
133
134 /**
135 * Spawns an in-game Notification.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected