Package net.minecraft.server.network
Class ServerConnectionListener
java.lang.Object
net.minecraft.server.network.ServerConnectionListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<io.netty.channel.ChannelFuture> Contains all endpoints added to this NetworkSystem(package private) final List
<Connection> A list containing all NetworkManager instances of all endpointsprivate static final org.slf4j.Logger
private static final int
boolean
True if this NetworkSystem has never had his endpoints terminated(package private) final MinecraftServer
Reference to the MinecraftServer object.static final Supplier
<io.netty.channel.epoll.EpollEventLoopGroup> static final Supplier
<io.netty.channel.nio.NioEventLoopGroup> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
startTcpServerListener
(InetAddress pAddress, int pPort) Adds a channel that listens on publicly accessible network portsvoid
stop()
void
tick()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
READ_TIMEOUT
private static final int READ_TIMEOUT -
SERVER_EVENT_GROUP
-
SERVER_EPOLL_EVENT_GROUP
-
server
Reference to the MinecraftServer object. -
running
public volatile boolean runningTrue if this NetworkSystem has never had his endpoints terminated -
channels
Contains all endpoints added to this NetworkSystem -
connections
A list containing all NetworkManager instances of all endpoints
-
-
Constructor Details
-
ServerConnectionListener
-
-
Method Details
-
startTcpServerListener
Adds a channel that listens on publicly accessible network ports- Throws:
IOException
-
startMemoryChannel
-
stop
public void stop() -
tick
public void tick() -
getServer
-
getConnections
-