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

Method getNMSClass

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

Gets an NMS class (a class whose package is net.minecraft.server followed by the version package) by name. @param name The name of the class @return The NMSClass wrapping the resulting class

(String name)

Source from the content-addressed store, hash-verified

157 * @return The NMSClass wrapping the resulting class
158 */
159 public static NMSClass getNMSClass(String name) {
160 try {
161 return new NMSClass(Class.forName(getNMSPackage() + "." + name));
162 } catch (ClassNotFoundException e) {
163 throw new IllegalArgumentException(e);
164 }
165 }
166
167 /**
168 * Gets any class and wraps it in an NMSClass

Callers

nothing calls this directly

Calls 1

getNMSPackageMethod · 0.95

Tested by

no test coverage detected