Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.plugin.messaging.PluginMessageListenerRegistration Class Reference

Public Member Functions

 PluginMessageListenerRegistration (Messenger messenger, Plugin plugin, String channel, PluginMessageListener listener)
String getChannel ()
PluginMessageListener getListener ()
Plugin getPlugin ()
boolean isValid ()
boolean equals (Object obj)
int hashCode ()

Detailed Description

Contains information about a Plugins registration to a plugin channel.

Definition at line 9 of file PluginMessageListenerRegistration.java.

Member Function Documentation

String org.bukkit.plugin.messaging.PluginMessageListenerRegistration.getChannel ( )
PluginMessageListener org.bukkit.plugin.messaging.PluginMessageListenerRegistration.getListener ( )

Gets the registered listener described by this registration.

Registered listener.

Definition at line 49 of file PluginMessageListenerRegistration.java.

Referenced by org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage().

49  {
50  return listener;
51  }
Plugin org.bukkit.plugin.messaging.PluginMessageListenerRegistration.getPlugin ( )

Gets the plugin that this registration is for.

Registered plugin.

Definition at line 58 of file PluginMessageListenerRegistration.java.

Referenced by org.bukkit.plugin.messaging.StandardMessenger.isRegistrationValid().

58  {
59  return plugin;
60  }
boolean org.bukkit.plugin.messaging.PluginMessageListenerRegistration.isValid ( )

Checks if this registration is still valid.

True if this registration is still valid, otherwise false.

Definition at line 67 of file PluginMessageListenerRegistration.java.

References org.bukkit.plugin.messaging.Messenger.isRegistrationValid().

67  {
68  return messenger.isRegistrationValid(this);
69  }
boolean isRegistrationValid(PluginMessageListenerRegistration registration)

The documentation for this class was generated from the following file: