Package org.bukkit.plugin.messaging
Class PluginMessageListenerRegistration
java.lang.Object
org.bukkit.plugin.messaging.PluginMessageListenerRegistration
Contains information about a
Plugin
s registration to a plugin
channel.-
Constructor Summary
ConstructorDescriptionPluginMessageListenerRegistration
(@NotNull Messenger messenger, @NotNull Plugin plugin, @NotNull String channel, @NotNull PluginMessageListener listener) -
Method Summary
-
Constructor Details
-
PluginMessageListenerRegistration
-
-
Method Details
-
getChannel
Gets the plugin channel that this registration is about.- Returns:
- Plugin channel.
-
getListener
Gets the registered listener described by this registration.- Returns:
- Registered listener.
-
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.
-
equals
-
hashCode
public int hashCode()
-