Gets the full name of the NMS package @return The full name of the NMS package
()
| 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 |