MCPcopy Create free account
hub / github.com/boxbeam/RedLib / init

Method init

src/redempt/redlib/misc/UserCache.java:62–71  ·  view source on GitHub ↗

Initializes the user cache synchronously

()

Source from the content-addressed store, hash-verified

60 * Initializes the user cache synchronously
61 */
62 public static void init() {
63 asyncInit();
64 if (!initTask.isDone()) {
65 try {
66 initTask.get();
67 } catch (InterruptedException | ExecutionException e) {
68 e.printStackTrace();
69 }
70 }
71 }
72
73 /**
74 * Gets an OfflinePlayer by name, initializing the cache synchronously if it has not been initialized yet

Callers 1

getOfflinePlayerMethod · 0.95

Calls 2

asyncInitMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected