public class IRCEventAdapter extends Object implements IRCEventListener
IRCEventListener.IRCEventListenerBOLD_INDICATOR, COLOR_END_INDICATOR, COLOR_INDICATOR, COLOR_REVERSE_INDICATOR, UNDERLINE_INDICATOR| Constructor and Description |
|---|
IRCEventAdapter()
The default and only constructor does nothing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onDisconnected()
Does nothing in this implementation.
|
void |
onError(int num,
String msg)
Does nothing in this implementation.
|
void |
onError(String msg)
Does nothing in this implementation.
|
void |
onInvite(String chan,
IRCUser user,
String passiveNick)
Does nothing in this implementation.
|
void |
onJoin(String chan,
IRCUser user)
Does nothing in this implementation.
|
void |
onKick(String chan,
IRCUser user,
String passiveNick,
String msg)
Does nothing in this implementation.
|
void |
onMode(IRCUser user,
String passiveNick,
String mode)
Does nothing in this implementation.
|
void |
onMode(String chan,
IRCUser user,
IRCModeParser modeParser)
Does nothing in this implementation.
|
void |
onNick(IRCUser user,
String newNick)
Does nothing in this implementation.
|
void |
onNotice(String target,
IRCUser user,
String msg)
Does nothing in this implementation.
|
void |
onPart(String chan,
IRCUser user,
String msg)
Does nothing in this implementation.
|
void |
onPing(String ping)
Does nothing in this implementation.
|
void |
onPrivmsg(String target,
IRCUser user,
String msg)
Does nothing in this implementation.
|
void |
onQuit(IRCUser user,
String msg)
Does nothing in this implementation.
|
void |
onRegistered()
Does nothing in this implementation.
|
void |
onReply(int num,
String value,
String msg)
Does nothing in this implementation.
|
void |
onTopic(String chan,
IRCUser user,
String topic)
Does nothing in this implementation.
|
void |
unknown(String prefix,
String command,
String middle,
String trailing)
Does nothing in this implementation.
|
public IRCEventAdapter()
public void onRegistered()
onRegistered in interface IRCEventListenerIRCEventListener.onRegistered()public void onDisconnected()
onDisconnected in interface IRCEventListenerIRCEventListener.onDisconnected()public void onError(String msg)
onError in interface IRCEventListenermsg - The message of the error.IRCEventListener.onError(String)public void onError(int num,
String msg)
onError in interface IRCEventListenernum - The identifier (usually a 3-digit number).msg - The message of the error.IRCEventListener.onError(int, String)public void onInvite(String chan, IRCUser user, String passiveNick)
onInvite in interface IRCEventListenerchan - The channel the user is invited to.user - The user who invites another. Contains nick, username and host.passiveNick - The nickname of the user who is invited by another user
(passive).IRCEventListener.onInvite(String, IRCUser, String)public void onJoin(String chan, IRCUser user)
onJoin in interface IRCEventListenerchan - The channel the person joins.user - The user who joins. Contains nick, username and host.IRCEventListener.onJoin(String, IRCUser)public void onKick(String chan, IRCUser user, String passiveNick, String msg)
onKick in interface IRCEventListenerchan - The channel somebody is kicked from.user - The user who kicks another user from a channel.
Contains nick, username and host.passiveNick - The nickname of the user who is kicked from a channel
(passive).msg - The message the active user has set. This is "" if
no message was set.IRCEventListener.onKick(String, IRCUser, String, String)public void onMode(String chan, IRCUser user, IRCModeParser modeParser)
onMode in interface IRCEventListenerchan - The channel in which the modes are changed.user - The user who changes the modes.
Contains nick, username and host.modeParser - The IRCModeParser object which contains the
parsed information about the modes which are changed.IRCEventListener.onMode(String, IRCUser, IRCModeParser)public void onMode(IRCUser user, String passiveNick, String mode)
onMode in interface IRCEventListeneruser - The user who changes the modes of another user or himself.
Contains nick, username and host.passiveNick - The nickname of the person whose modes are changed by
another user or himself.mode - The changed modes which are set.IRCEventListener.onMode(IRCUser, String, String)public void onNick(IRCUser user, String newNick)
onNick in interface IRCEventListeneruser - The user who changes his nickname.
Contains nick, username and host.newNick - The new nickname of the user who changes his nickname.IRCEventListener.onNick(IRCUser, String)public void onNotice(String target, IRCUser user, String msg)
onNotice in interface IRCEventListenertarget - The channel or nickname the user sent a NOTICE
to.user - The user who notices another person or a group.
Contains nick, username and host.msg - The message.IRCEventListener.onNotice(String, IRCUser, String)public void onPart(String chan, IRCUser user, String msg)
onPart in interface IRCEventListenerchan - The channel somebody parts from.user - The user who parts from a channel.
Contains nick, username and host.msg - The part-message which is optionally.
If it's empty, msg is "".IRCEventListener.onPart(String, IRCUser, String)public void onPing(String ping)
onPing in interface IRCEventListenerping - The ping which is received from the server.IRCEventListener.onPing(String)public void onPrivmsg(String target, IRCUser user, String msg)
onPrivmsg in interface IRCEventListenertarget - The channel or nickname the user sent a PRIVMSG
to.user - The user who sent the PRIVMSG.
Contains nick, username and host.msg - The message the user transmits.IRCEventListener.onPrivmsg(String, IRCUser, String)public void onQuit(IRCUser user, String msg)
onQuit in interface IRCEventListeneruser - The user who quits. Contains nick, username and host.msg - The optional message. "" if no message is set by
the user.IRCEventListener.onQuit(IRCUser, String)public void onReply(int num,
String value,
String msg)
onReply in interface IRCEventListenernum - The numeric reply.value - The first part of the message.msg - The main part of the message.IRCEventListener.onReply(int, String, String)public void onTopic(String chan, IRCUser user, String topic)
onTopic in interface IRCEventListenerchan - The channel where the topic is changed.user - The user who changes the topic.
Contains nick, username and host.topic - The new topic.IRCEventListener.onTopic(String, IRCUser, String)public void unknown(String prefix, String command, String middle, String trailing)
unknown in interface IRCEventListenerprefix - The prefix of the incoming line.command - The command of the incoming line.middle - The part until the colon (:).trailing - The part behind the colon (:).IRCEventListener.unknown(String, String, String, String)Copyright © 2006–2015. All rights reserved.