MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / newInstance

Method newInstance

src/main/java/net/optifine/reflect/Reflector.java:974–995  ·  view source on GitHub ↗
(ReflectorConstructor constr, Object... params)

Source from the content-addressed store, hash-verified

972 }
973
974 public static Object newInstance(ReflectorConstructor constr, Object... params)
975 {
976 Constructor constructor = constr.getTargetConstructor();
977
978 if (constructor == null)
979 {
980 return null;
981 }
982 else
983 {
984 try
985 {
986 Object object = constructor.newInstance(params);
987 return object;
988 }
989 catch (Throwable throwable)
990 {
991 handleException(throwable, constr, params);
992 return null;
993 }
994 }
995 }
996
997 public static boolean matchesTypes(Class[] pTypes, Class[] cTypes)
998 {

Callers 15

newInstanceMethod · 0.95
postForgeBusEventMethod · 0.95
orientCameraMethod · 0.95
updateFogColorMethod · 0.95
RenderItemMethod · 0.95
addObjectsToArrayMethod · 0.45
addObjectToArrayMethod · 0.45
collectionToArrayMethod · 0.45
testNewMethod · 0.45
testNewObjDynMethod · 0.45
allocateMethod · 0.45
parseObjectsMethod · 0.45

Calls 2

handleExceptionMethod · 0.95
getTargetConstructorMethod · 0.80

Tested by

no test coverage detected