Package org.bukkit.plugin

Examples of org.bukkit.plugin.EventExecutor


                            warningState == WarningState.ON ? new AuthorNagException(null) : null);
                    break;
                }
            }

            EventExecutor executor = new EventExecutor() {
                public void execute(Listener listener, Event event) throws EventException {
                    try {
                        if (!eventClass.isAssignableFrom(event.getClass())) {
                            return;
                        }
View Full Code Here


      }

      final Class<? extends Event> eventClass = params[0].asSubclass(Event.class);
      method.setAccessible(true);

      EventExecutor executor = new EventExecutor() {
        public void execute(Listener listener, Event event) throws EventException {
          try {
            if (!eventClass.isAssignableFrom(event.getClass())) {
              return;
            }
View Full Code Here

        for(Map.Entry<Class<? extends Event>, Set<PythonEventHandler>> entry : pyListener.handlers.entrySet()) {
            Set<RegisteredListener> eventSet = new HashSet<RegisteredListener>();

            for(final PythonEventHandler handler : entry.getValue()) {
                EventExecutor executor = new EventExecutor() {

                    @Override
                    public void execute(Listener listener, Event event) throws EventException {
                        if(!listener.getClass().equals(PythonListener.class)) {
                            throw new IllegalArgumentException("No PythonListener passed to EventExecutor! If this happens someone really fucked up something");
View Full Code Here

TOP

Related Classes of org.bukkit.plugin.EventExecutor

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.