Package fr.neatmonster.nocheatplus.event.GenericListener.MethodEntry

Examples of fr.neatmonster.nocheatplus.event.GenericListener.MethodEntry.MethodOrder


      if (!Event.class.isAssignableFrom(eventType)){
        LogUtil.logWarning("[ListenerManager] Bad method signature (argument does not extend Event): " + method.toGenericString() +" registered in " + clazz.getName()+ ", ignoring it!");
        continue;
      }
      Class<? extends Event> checkedEventType = eventType.asSubclass(Event.class);
      MethodOrder tempOrder = order;
      String tempTag = tag;
      fr.neatmonster.nocheatplus.event.MethodOrder orderAnno = method.getAnnotation(fr.neatmonster.nocheatplus.event.MethodOrder.class);
      if (orderAnno != null){
        MethodOrder veryTempOrder = tempOrder = MethodOrder.getMethodOrder(orderAnno);
        if (veryTempOrder != null) tempOrder = veryTempOrder;
        if (!orderAnno.tag().isEmpty()) tempTag = orderAnno.tag();
      }
      getListener(checkedEventType, anno.priority()).addMethodEntry(new MethodEntry(listener, method, anno.ignoreCancelled(), tempTag, tempOrder));
    }
View Full Code Here

TOP

Related Classes of fr.neatmonster.nocheatplus.event.GenericListener.MethodEntry.MethodOrder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.