public class NetworkSystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LazyLoadBase<NioEventLoopGroup> |
eventLoops |
static LazyLoadBase<EpollEventLoopGroup> |
field_181141_b |
boolean |
isAlive
True if this NetworkSystem has never had his endpoints terminated
|
static LazyLoadBase<LocalEventLoopGroup> |
SERVER_LOCAL_EVENTLOOP |
Constructor and Description |
---|
NetworkSystem(MinecraftServer server) |
Modifier and Type | Method and Description |
---|---|
void |
addLanEndpoint(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 |
networkTick()
Will try to process the packets received by each NetworkManager, gracefully manage processing failures and cleans
up dead connections
|
void |
terminateEndpoints()
Shuts down all open endpoints (with immediate effect?)
|
public static final LazyLoadBase<NioEventLoopGroup> eventLoops
public static final LazyLoadBase<EpollEventLoopGroup> field_181141_b
public static final LazyLoadBase<LocalEventLoopGroup> SERVER_LOCAL_EVENTLOOP
public volatile boolean isAlive
public NetworkSystem(MinecraftServer server)
public void addLanEndpoint(java.net.InetAddress address, int port) throws java.io.IOException
java.io.IOException
public java.net.SocketAddress addLocalEndpoint()
public void terminateEndpoints()
public void networkTick()
public MinecraftServer getServer()