public class NetworkSystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
isAlive |
static LazyLoadBase<io.netty.channel.epoll.EpollEventLoopGroup> |
SERVER_EPOLL_EVENTLOOP |
static LazyLoadBase<io.netty.channel.local.LocalEventLoopGroup> |
SERVER_LOCAL_EVENTLOOP |
static LazyLoadBase<io.netty.channel.nio.NioEventLoopGroup> |
SERVER_NIO_EVENTLOOP |
Constructor and Description |
---|
NetworkSystem(MinecraftServer server) |
Modifier and Type | Method and Description |
---|---|
void |
addLanEndpoint(java.net.InetAddress address,
int port) |
java.net.SocketAddress |
addLocalEndpoint() |
MinecraftServer |
getServer() |
void |
networkTick() |
void |
terminateEndpoints() |
public static final LazyLoadBase<io.netty.channel.nio.NioEventLoopGroup> SERVER_NIO_EVENTLOOP
public static final LazyLoadBase<io.netty.channel.epoll.EpollEventLoopGroup> SERVER_EPOLL_EVENTLOOP
public static final LazyLoadBase<io.netty.channel.local.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()