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)
| 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 |
nothing calls this directly
no test coverage detected