Package org.bukkit.plugin.messaging
Class PluginMessageListenerRegistration
- java.lang.Object
-
- org.bukkit.plugin.messaging.PluginMessageListenerRegistration
-
-
Constructor Summary
Constructors Constructor Description PluginMessageListenerRegistration(@NotNull Messenger messenger, @NotNull Plugin plugin, @NotNull String channel, @NotNull PluginMessageListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)@NotNull StringgetChannel()Gets the plugin channel that this registration is about.@NotNull PluginMessageListenergetListener()Gets the registered listener described by this registration.@NotNull PlugingetPlugin()Gets the plugin that this registration is for.inthashCode()booleanisValid()Checks if this registration is still valid.
-
-
-
Method Detail
-
getChannel
@NotNull public @NotNull String getChannel()
Gets the plugin channel that this registration is about.- Returns:
- Plugin channel.
-
getListener
@NotNull public @NotNull PluginMessageListener getListener()
Gets the registered listener described by this registration.- Returns:
- Registered listener.
-
getPlugin
@NotNull public @NotNull 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.
-
-