Class ServerConnectionListener

java.lang.Object
net.minecraft.server.network.ServerConnectionListener

public class ServerConnectionListener extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • READ_TIMEOUT

      private static final int READ_TIMEOUT
    • SERVER_EVENT_GROUP

      public static final LazyLoadedValue<io.netty.channel.nio.NioEventLoopGroup> SERVER_EVENT_GROUP
    • SERVER_EPOLL_EVENT_GROUP

      public static final LazyLoadedValue<io.netty.channel.epoll.EpollEventLoopGroup> SERVER_EPOLL_EVENT_GROUP
    • server

      final MinecraftServer server
    • running

      public volatile boolean running
    • channels

      private final List<io.netty.channel.ChannelFuture> channels
    • connections

      final List<Connection> connections
  • Constructor Details

    • ServerConnectionListener

      public ServerConnectionListener(MinecraftServer p_9707_)
  • Method Details

    • startTcpServerListener

      public void startTcpServerListener(@Nullable InetAddress p_9712_, int p_9713_) throws IOException
      Throws:
      IOException
    • startMemoryChannel

      public SocketAddress startMemoryChannel()
    • stop

      public void stop()
    • tick

      public void tick()
    • getServer

      public MinecraftServer getServer()