Class TwitchIRCClient
- java.lang.Object
-
- java.lang.Thread
-
- net.runelite.client.plugins.twitch.irc.TwitchIRCClient
-
- All Implemented Interfaces:
AutoCloseable
,Runnable
public class TwitchIRCClient extends Thread implements AutoCloseable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description TwitchIRCClient(TwitchListener twitchListener, String username, String password, String channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isConnected()
void
pingCheck()
void
privmsg(String message)
void
run()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
TwitchIRCClient
public TwitchIRCClient(TwitchListener twitchListener, String username, String password, String channel)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
isConnected
public boolean isConnected()
-
pingCheck
public void pingCheck()
-
privmsg
public void privmsg(String message) throws IOException
- Throws:
IOException
-
-