MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / newInstance

Method newInstance

Utils/src/eu/the5zig/util/ReflectionUtil.java:25–31  ·  view source on GitHub ↗
(Class<?> c, Class[] parameterTypes, Object[] args)

Source from the content-addressed store, hash-verified

23 }
24
25 public static Object newInstance(Class<?> c, Class[] parameterTypes, Object[] args) {
26 try {
27 return c.getConstructor(parameterTypes).newInstance(args);
28 } catch (Exception e) {
29 throw new RuntimeException(e);
30 }
31 }
32
33 public static Object invoke(Class<?> c, String m, Class[] parameterTypes, Object o, Object[] args) {
34 try {

Callers 11

queryMethod · 0.45
loadPlugin0Method · 0.45
createMethod · 0.45
registerMethod · 0.45
getPacketMethod · 0.45
switchLobbyMethod · 0.45
createNewConfigMethod · 0.45
actionMethod · 0.45
onTickMethod · 0.45
updateChannelInfoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected