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

Method callInt

src/main/java/net/optifine/reflect/Reflector.java:449–470  ·  view source on GitHub ↗
(ReflectorMethod refMethod, Object... params)

Source from the content-addressed store, hash-verified

447 }
448
449 public static int callInt(ReflectorMethod refMethod, Object... params)
450 {
451 try
452 {
453 Method method = refMethod.getTargetMethod();
454
455 if (method == null)
456 {
457 return 0;
458 }
459 else
460 {
461 Integer integer = (Integer)method.invoke((Object)null, params);
462 return integer.intValue();
463 }
464 }
465 catch (Throwable throwable)
466 {
467 handleException(throwable, (Object)null, refMethod, params);
468 return 0;
469 }
470 }
471
472 public static float callFloat(ReflectorMethod refMethod, Object... params)
473 {

Callers 4

getColorMethod · 0.95
callIntMethod · 0.95
renderEntitiesMethod · 0.95
findChunksForSpawningMethod · 0.95

Calls 2

handleExceptionMethod · 0.95
getTargetMethodMethod · 0.80

Tested by

no test coverage detected