1 18 19 package alt.jiapi.event; 20 21 import java.lang.reflect.Method ; 22 import alt.jiapi.instrumentor.Hook; 23 24 31 class CatchHook extends EventHook implements Hook { 32 private Method hookMethod; 33 34 public CatchHook(EventProducer ep) { 35 super(ep); 36 } 37 38 41 public String getMethodName() { 42 return "catchTrapped"; 43 } 44 45 48 protected Class [] getMethodParameters() { 49 return new Class [] {Object .class, String .class, Object .class}; 50 } 51 } 52 53 54 55 | Popular Tags |