blob: 1ee5a1c779bffd72afcc10cdaeddd94f356263c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
package org.bukkit.plugin;
import org.bukkit.event.Event;
import org.bukkit.event.Listener;
/**
* Stores relevant information for plugin listeners
*/
public class RegisteredListener {
private final Listener listener;
private final Event.Priority priority;
private final Plugin plugin;
public RegisteredListener(final Listener pluginListener, final Event.Priority eventPriority, final Plugin registeredPlugin) {
listener = pluginListener;
priority = eventPriority;
plugin = registeredPlugin;
}
/**
* Gets the listener for this registration
* @return Registered Listener
*/
public Listener getListener() {
return listener;
}
/**
* Gets the plugin for this registration
* @return Registered Plugin
*/
public Plugin getPlugin() {
return plugin;
}
/**
* Gets the priority for this registration
* @return Registered Priority
*/
public Event.Priority getPriority() {
return priority;
}
}
|