public class NetworkSystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<io.netty.channel.ChannelFuture> |
endpoints |
boolean |
isAlive |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.List<NetworkManager> |
networkManagers |
private static int |
READ_TIMEOUT |
private MinecraftServer |
server |
static LazyValue<io.netty.channel.epoll.EpollEventLoopGroup> |
SERVER_EPOLL_EVENTLOOP |
static LazyValue<io.netty.channel.nio.NioEventLoopGroup> |
SERVER_NIO_EVENTLOOP |
Constructor and Description |
---|
NetworkSystem(MinecraftServer server) |
Modifier and Type | Method and Description |
---|---|
void |
addEndpoint(java.net.InetAddress address,
int port) |
java.net.SocketAddress |
addLocalEndpoint() |
MinecraftServer |
getServer() |
void |
terminateEndpoints() |
void |
tick() |
private static final org.apache.logging.log4j.Logger LOGGER
private static final int READ_TIMEOUT
public static final LazyValue<io.netty.channel.nio.NioEventLoopGroup> SERVER_NIO_EVENTLOOP
public static final LazyValue<io.netty.channel.epoll.EpollEventLoopGroup> SERVER_EPOLL_EVENTLOOP
private final MinecraftServer server
public volatile boolean isAlive
private final java.util.List<io.netty.channel.ChannelFuture> endpoints
private final java.util.List<NetworkManager> networkManagers
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()