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

Method getNMSPackage

src/redempt/redlib/nms/NMSHelper.java:24–34  ·  view source on GitHub ↗

Gets the full name of the NMS package @return The full name of the NMS package

()

Source from the content-addressed store, hash-verified

22 * @return The full name of the NMS package
23 */
24 public static String getNMSPackage() {
25 if (packageName == null) {
26 for (Package pkg : Package.getPackages()) {
27 if (pkg.getName().startsWith("net.minecraft.server.")) {
28 packageName = pkg.getName();
29 break;
30 }
31 }
32 }
33 return packageName;
34 }
35
36 /**
37 * @return The version section of the NMS package, like v1_15_R1

Callers 1

getNMSClassMethod · 0.95

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected