public class NetworkSystem
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
boolean |
isAlive
True if this NetworkSystem has never had his endpoints terminated
|
static LazyValue<io.netty.channel.epoll.EpollEventLoopGroup> |
SERVER_EPOLL_EVENTLOOP |
static LazyValue<io.netty.channel.nio.NioEventLoopGroup> |
SERVER_NIO_EVENTLOOP |
コンストラクタと説明 |
---|
NetworkSystem(MinecraftServer server) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addEndpoint(java.net.InetAddress address,
int port)
Adds a channel that listens on publicly accessible network ports
|
java.net.SocketAddress |
addLocalEndpoint()
Adds a channel that listens locally
|
MinecraftServer |
getServer() |
void |
terminateEndpoints()
Shuts down all open endpoints (with immediate effect?)
|
void |
tick()
Will try to process the packets received by each NetworkManager, gracefully manage processing failures and cleans
up dead connections
|
public static final LazyValue<io.netty.channel.nio.NioEventLoopGroup> SERVER_NIO_EVENTLOOP
public static final LazyValue<io.netty.channel.epoll.EpollEventLoopGroup> SERVER_EPOLL_EVENTLOOP
public volatile boolean isAlive
public NetworkSystem(MinecraftServer server)
public void addEndpoint(@Nullable java.net.InetAddress address, int port) throws java.io.IOException
java.io.IOException
public java.net.SocketAddress addLocalEndpoint()
public void terminateEndpoints()
public void tick()
public MinecraftServer getServer()