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

Method addDesktopTask

src/main/java/exitcode/API.java:100–102  ·  view source on GitHub ↗

Adds a new function to desktop_tasks. These are Runnable's to be executed after the Desktop loads. (Desktop mods go here) @param uniqueObjectIdentifier This is a String ID that should be unique to a single function, or other resource. This is used to help troubleshoot problems, and enable you to re

(String uniqueObjectIdentifier, Runnable function)

Source from the content-addressed store, hash-verified

98 * @param function This is the Runnable to be executed.
99 */
100 public static void addDesktopTask(String uniqueObjectIdentifier, Runnable function) {
101 API.desktop_tasks.put(uniqueObjectIdentifier, function);
102 }
103
104 /**
105 * Adds a new function to desktop_tasks2.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected