Unwraps an array of arguments, replacing NMSObjects with their wrapped values @param args The arguments to unwrap
(Object... args)
| 50 | * @param args The arguments to unwrap |
| 51 | */ |
| 52 | public static void unwrapArgs(Object... args) { |
| 53 | for (int i = 0; i < args.length; i++) { |
| 54 | if (args[i] instanceof NMSObject) { |
| 55 | args[i] = ((NMSObject) args[i]).getObject(); |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Gets the class list of argument types for finding methods |
no test coverage detected