Examples of registerEvent()


Examples of org.bukkit.plugin.PluginManager.registerEvent()

      pm.registerEvent(Event.Type.ENTITY_DAMAGED, this.entityListener, Event.Priority.Normal, this);
      pm.registerEvent(Event.Type.CREATURE_SPAWN, this.entityListener, Event.Priority.Normal, this);
      pm.registerEvent(Event.Type.ENTITY_EXPLODE, this.entityListener, Event.Priority.Normal, this);

      pm.registerEvent(Event.Type.VEHICLE_MOVE, this.vehicleListener, Event.Priority.Normal, this);

     
      getServer().getScheduler().scheduleAsyncRepeatingTask(this, regen, 10, 10);

      registerCommands();
View Full Code Here

Examples of org.eclipse.e4.xwt.IEventGroup.registerEvent()

   
    // TODO this conversion should be simplied
    String eventName = ModelUtils.normalizePropertyName(eventProperty.getEvent().getName());   
    IEventGroup eventGroup = metaclass.getEventGroup(eventName);
    if (eventGroup != null) {
      eventGroup.registerEvent(this, property);
    }
  }
 
  public IObservableValue getValue(IProperty property) {
    if (map == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.