Package net.minecraft.network.rcon
Class MainThread
- java.lang.Object
-
- net.minecraft.network.rcon.RConThread
-
- net.minecraft.network.rcon.MainThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class MainThread extends RConThread
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ClientThread>
clients
private static org.apache.logging.log4j.Logger
LOGGER
private java.lang.String
rconPassword
private IServer
serverInterface
private java.net.ServerSocket
socket
-
Fields inherited from class net.minecraft.network.rcon.RConThread
name, running, thread
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MainThread(IServer p_i241891_1_, java.net.ServerSocket p_i241891_2_, java.lang.String p_i241891_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
clearClients()
private void
closeSocket(java.net.ServerSocket p_232655_1_)
static MainThread
create(IServer p_242130_0_)
void
run()
void
stop()
-
Methods inherited from class net.minecraft.network.rcon.RConThread
isRunning, start
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
socket
private final java.net.ServerSocket socket
-
rconPassword
private final java.lang.String rconPassword
-
clients
private final java.util.List<ClientThread> clients
-
serverInterface
private final IServer serverInterface
-
-
Constructor Detail
-
MainThread
private MainThread(IServer p_i241891_1_, java.net.ServerSocket p_i241891_2_, java.lang.String p_i241891_3_)
-
-
Method Detail
-
clearClients
private void clearClients()
-
run
public void run()
-
create
@Nullable public static MainThread create(IServer p_242130_0_)
-
stop
public void stop()
- Overrides:
stop
in classRConThread
-
closeSocket
private void closeSocket(java.net.ServerSocket p_232655_1_)
-
-