X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FFcpListener.java;h=b96885f89b902141ba7e1c6e0ce6b7ea0145711a;hb=fed333217dc45a47f6eabea6a5b29aed987cd160;hp=4f0c77a3dc4470778469a1468b88fecbbd509939;hpb=508624458578f01a393f8b44f32b98b40054fdc8;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/FcpListener.java b/src/main/java/net/pterodactylus/fcp/FcpListener.java index 4f0c77a..b96885f 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpListener.java +++ b/src/main/java/net/pterodactylus/fcp/FcpListener.java @@ -309,6 +309,8 @@ public interface FcpListener extends EventListener { */ public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved); + void receivedSubscribedUSK(FcpConnection fcpConnection, SubscribedUSK subscribedUSK); + /** * Notifies a listener that a “SubscribedUSKUpdate” message was received. * @@ -329,6 +331,8 @@ public interface FcpListener extends EventListener { */ public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo); + void receivedPluginRemoved(FcpConnection fcpConnection, PluginRemoved pluginRemoved); + /** * Notifies a listener that an “FCPPluginReply“ message was received. * @@ -401,9 +405,10 @@ public interface FcpListener extends EventListener { public void receivedProtocolError(FcpConnection fcpConnection, ProtocolError protocolError); /** - * Notifies a listener that a message has been received. This method is only - * called if {@link FcpConnection#handleMessage(FcpMessage)} does not - * recognize the message. Should that ever happen, please file a bug report! + * Notifies a listener that a message has been received. This method is + * only called if {@link FcpConnection#handleMessage(FcpMessage)} does not + * recognize the message. Should that ever happen, please file a bug + * report! * * @param fcpConnection * The connection that received the message @@ -413,15 +418,15 @@ public interface FcpListener extends EventListener { public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage); /** - * Notifies a listener that a connection was closed. A closed connection can - * be reestablished by calling {@link FcpConnection#connect()} on the same - * object again. + * Notifies a listener that a connection was closed. A closed connection + * can be reestablished by calling {@link FcpConnection#connect()} on the + * same object again. * * @param fcpConnection * The connection that was closed. * @param throwable - * The exception that caused the disconnect, or null - * if there was no exception + * The exception that caused the disconnect, or + * null if there was no exception */ public void connectionClosed(FcpConnection fcpConnection, Throwable throwable);