Package org.bukkit.plugin.messaging
Class PluginMessageListenerRegistration
java.lang.Object
org.bukkit.plugin.messaging.PluginMessageListenerRegistration
public final class PluginMessageListenerRegistration extends Object
Contains information about a 
Plugins registration to a plugin
 channel.- 
Constructor SummaryConstructors Constructor Description PluginMessageListenerRegistration(Messenger messenger, Plugin plugin, String channel, PluginMessageListener listener)
- 
Method SummaryModifier and Type Method Description booleanequals(Object obj)StringgetChannel()Gets the plugin channel that this registration is about.PluginMessageListenergetListener()Gets the registered listener described by this registration.PlugingetPlugin()Gets the plugin that this registration is for.inthashCode()booleanisValid()Checks if this registration is still valid.
- 
Constructor Details
- 
Method Details- 
getChannelGets the plugin channel that this registration is about.- Returns:
- Plugin channel.
 
- 
getListenerGets the registered listener described by this registration.- Returns:
- Registered listener.
 
- 
getPluginGets the plugin that this registration is for.- Returns:
- Registered plugin.
 
- 
isValidpublic boolean isValid()Checks if this registration is still valid.- Returns:
- True if this registration is still valid, otherwise false.
 
- 
equals
- 
hashCodepublic int hashCode()
 
-