Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
ServiceEvent.java
1 package org.bukkit.event.server;
2 
4 
5 /**
6  * An event relating to a registered service. This is called in a {@link
7  * org.bukkit.plugin.ServicesManager}
8  */
9 public abstract class ServiceEvent extends ServerEvent {
10  private final RegisteredServiceProvider<?> provider;
11 
12  public ServiceEvent(final RegisteredServiceProvider<?> provider) {
13  this.provider = provider;
14  }
15 
16  public RegisteredServiceProvider<?> getProvider() {
17  return provider;
18  }
19 }