Class ServerConnectionListener

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

public class ServerConnectionListener extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • READ_TIMEOUT

      private static final int READ_TIMEOUT
    • SERVER_EVENT_GROUP

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

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

      final MinecraftServer server
      Reference to the MinecraftServer object.
    • running

      public volatile boolean running
      True if this NetworkSystem has never had his endpoints terminated
    • channels

      private final List<io.netty.channel.ChannelFuture> channels
      Contains all endpoints added to this NetworkSystem
    • connections

      final List<Connection> connections
      A list containing all NetworkManager instances of all endpoints
  • Constructor Details

    • ServerConnectionListener

      public ServerConnectionListener(MinecraftServer pServer)
  • Method Details

    • startTcpServerListener

      public void startTcpServerListener(@Nullable InetAddress pAddress, int pPort) throws IOException
      Adds a channel that listens on publicly accessible network ports
      Throws:
      IOException
    • startMemoryChannel

      public SocketAddress startMemoryChannel()
    • stop

      public void stop()
    • tick

      public void tick()
    • getServer

      public MinecraftServer getServer()
    • getConnections

      public List<Connection> getConnections()