Package net.minecraft.src
Class RConThreadBase
java.lang.Object
net.minecraft.src.RConThreadBase
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
RConThreadClient,RConThreadMain,RConThreadQuery
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected ThreadThread for this runnable classprotected booleanTrue if the Thread is running, false otherwiseprotected IServerReference to the IServer object.protected ListA list of registered ServerSocketsprotected ListA list of registered DatagramSockets -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCloses all of the opened socketsprotected voidcloseAllSockets_do(boolean par1) Closes all of the opened socketsprotected booleancloseServerSocket(ServerSocket par1ServerSocket) Closes the specified ServerSocketprotected booleancloseServerSocket_do(ServerSocket par1ServerSocket, boolean par2) Closes the specified ServerSocketprotected booleancloseSocket(DatagramSocket par1DatagramSocket, boolean par2) Closes the specified DatagramSocketprotected intReturns the number of players on the serverbooleanReturns true if the Thread is running, false otherwiseprotected voidLog debug messageprotected voidLog information messageprotected voidLog severe error messageprotected voidlogWarning(String par1Str) Log warning messageprotected voidregisterSocket(DatagramSocket par1DatagramSocket) Registers a DatagramSocket with this threadvoidCreates a new Thread object from this class and starts running
-
Field Details
-
running
protected boolean runningTrue if the Thread is running, false otherwise -
server
Reference to the IServer object. -
rconThread
Thread for this runnable class -
field_72615_d
protected int field_72615_d -
socketList
A list of registered DatagramSockets -
serverSocketList
A list of registered ServerSockets
-
-
Method Details
-
startThread
public void startThread()Creates a new Thread object from this class and starts running -
isRunning
public boolean isRunning()Returns true if the Thread is running, false otherwise -
logDebug
Log debug message -
logInfo
Log information message -
logWarning
Log warning message -
logSevere
Log severe error message -
getNumberOfPlayers
protected int getNumberOfPlayers()Returns the number of players on the server -
registerSocket
Registers a DatagramSocket with this thread -
closeSocket
Closes the specified DatagramSocket -
closeServerSocket
Closes the specified ServerSocket -
closeServerSocket_do
Closes the specified ServerSocket -
closeAllSockets
protected void closeAllSockets()Closes all of the opened sockets -
closeAllSockets_do
protected void closeAllSockets_do(boolean par1) Closes all of the opened sockets
-