MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / init

Method init

src/main/java/com/volmit/adapt/nms/NMS.java:39–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 private static Impl impl;
38
39 public static void init() {
40 version = Bukkit.getBukkitVersion().split("-")[0];
41 impl = VERSIONS.getOrDefault(version(), new NMS_Default());
42
43 if (impl instanceof NMS_Default) {
44 Adapt.error("Failed to bind NMS for Version " + version() + "!");
45 } else {
46 Adapt.info("Successfully bound NMS for Version " + version() + ".");
47 }
48 }
49
50 public static String version() {
51 return version;

Callers 1

startMethod · 0.95

Calls 4

versionMethod · 0.95
errorMethod · 0.95
infoMethod · 0.95
splitMethod · 0.45

Tested by

no test coverage detected