public class CoreHooks extends ListenerAdapter
ListenerManager
with a subclass of this class (this
way you don't have to duplicate all the functionality).
Warning: Removing CoreHooks without providing a replacement will produce undesired results like server timeouts due to not responding to pings.
Configuration.Builder.replaceCoreHooksListener(org.pircbotx.hooks.CoreHooks)
Constructor and Description |
---|
CoreHooks() |
Modifier and Type | Method and Description |
---|---|
void |
onFinger(FingerEvent event) |
void |
onGenericMessage(GenericMessageEvent event) |
void |
onPing(PingEvent event) |
void |
onServerPing(ServerPingEvent event) |
void |
onTime(TimeEvent event) |
void |
onVersion(VersionEvent event) |
onAction, onBanList, onChannelInfo, onConnect, onConnectAttemptFailed, onDisconnect, onEvent, onException, onGenericChannel, onGenericChannelMode, onGenericChannelModeRecipient, onGenericChannelUser, onGenericCTCP, onGenericDCC, onGenericUser, onGenericUserMode, onHalfOp, onIncomingChatRequest, onIncomingFileTransfer, onInvite, onJoin, onKick, onListenerException, onMessage, onMode, onMotd, onNickAlreadyInUse, onNickChange, onNotice, onOp, onOutput, onOwner, onPart, onPrivateMessage, onQuit, onRemoveChannelBan, onRemoveChannelKey, onRemoveChannelLimit, onRemoveInviteOnly, onRemoveModerated, onRemoveNoExternalMessages, onRemovePrivate, onRemoveSecret, onRemoveTopicProtection, onServerResponse, onSetChannelBan, onSetChannelKey, onSetChannelLimit, onSetInviteOnly, onSetModerated, onSetNoExternalMessages, onSetPrivate, onSetSecret, onSetTopicProtection, onSocketConnect, onSuperOp, onTopic, onUnknown, onUserList, onUserMode, onVoice, onWhois
public void onFinger(FingerEvent event)
onFinger
in class ListenerAdapter
public void onPing(PingEvent event)
onPing
in class ListenerAdapter
public void onServerPing(ServerPingEvent event)
onServerPing
in class ListenerAdapter
public void onTime(TimeEvent event)
onTime
in class ListenerAdapter
public void onVersion(VersionEvent event)
onVersion
in class ListenerAdapter
public void onGenericMessage(GenericMessageEvent event) throws Exception
onGenericMessage
in class ListenerAdapter
Exception
Copyright © 2010–2020 Leon Blakey. All rights reserved.