Package org.bukkit.plugin.messaging
Class PluginMessageListenerRegistration
- java.lang.Object
-
- org.bukkit.plugin.messaging.PluginMessageListenerRegistration
-
-
Constructor Summary
Constructors Constructor Description PluginMessageListenerRegistration(Messenger messenger, Plugin plugin, String channel, PluginMessageListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getChannel()
Gets the plugin channel that this registration is about.PluginMessageListener
getListener()
Gets the registered listener described by this registration.Plugin
getPlugin()
Gets the plugin that this registration is for.int
hashCode()
boolean
isValid()
Checks if this registration is still valid.
-
-
-
Constructor Detail
-
PluginMessageListenerRegistration
public PluginMessageListenerRegistration(Messenger messenger, Plugin plugin, String channel, PluginMessageListener listener)
-
-
Method Detail
-
getChannel
public String getChannel()
Gets the plugin channel that this registration is about.- Returns:
- Plugin channel.
-
getListener
public PluginMessageListener getListener()
Gets the registered listener described by this registration.- Returns:
- Registered listener.
-
getPlugin
public Plugin getPlugin()
Gets the plugin that this registration is for.- Returns:
- Registered plugin.
-
isValid
public boolean isValid()
Checks if this registration is still valid.- Returns:
- True if this registration is still valid, otherwise false.
-
-