MCPcopy Create free account
hub / github.com/PaperMC/Paper / isPrimaryThread

Method isPrimaryThread

paper-api/src/main/java/org/bukkit/Bukkit.java:2085–2087  ·  view source on GitHub ↗

Checks the current thread against the expected primary thread for the server. Note: this method should not be used to indicate the current synchronized state of the runtime. A current thread matching the main thread indicates that it is synchronized, but a mismatch does not preclude</b

()

Source from the content-addressed store, hash-verified

2083 * false otherwise
2084 */
2085 public static boolean isPrimaryThread() {
2086 return server.isPrimaryThread();
2087 }
2088
2089 // Paper start
2090 /**

Callers 15

startTimingMethod · 0.95
stopTimingMethod · 0.95
executeMethod · 0.95
checkThreadMethod · 0.95
ServerEventMethod · 0.95
LookupProfileEventMethod · 0.95
PreLookupProfileEventMethod · 0.95
ServerExceptionEventMethod · 0.95

Calls 1

isPrimaryThreadMethod · 0.65

Tested by

no test coverage detected