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

Method unwrapArgs

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

Unwraps an array of arguments, replacing NMSObjects with their wrapped values @param args The arguments to unwrap

(Object... args)

Source from the content-addressed store, hash-verified

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

Callers 2

getInstanceMethod · 0.95
getArgTypesMethod · 0.95

Calls 1

getObjectMethod · 0.45

Tested by

no test coverage detected