Package net.minecraft.network
Class NetworkSystem
- java.lang.Object
-
- net.minecraft.network.NetworkSystem
-
public class NetworkSystem extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<io.netty.channel.ChannelFuture>
channels
private java.util.List<NetworkManager>
connections
private static org.apache.logging.log4j.Logger
LOGGER
private static int
READ_TIMEOUT
boolean
running
private MinecraftServer
server
static LazyValue<io.netty.channel.epoll.EpollEventLoopGroup>
SERVER_EPOLL_EVENT_GROUP
static LazyValue<io.netty.channel.nio.NioEventLoopGroup>
SERVER_EVENT_GROUP
-
Constructor Summary
Constructors Constructor Description NetworkSystem(MinecraftServer p_i45292_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MinecraftServer
getServer()
java.net.SocketAddress
startMemoryChannel()
void
startTcpServerListener(java.net.InetAddress p_151265_1_, int p_151265_2_)
void
stop()
void
tick()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
READ_TIMEOUT
private static final int READ_TIMEOUT
-
SERVER_EVENT_GROUP
public static final LazyValue<io.netty.channel.nio.NioEventLoopGroup> SERVER_EVENT_GROUP
-
SERVER_EPOLL_EVENT_GROUP
public static final LazyValue<io.netty.channel.epoll.EpollEventLoopGroup> SERVER_EPOLL_EVENT_GROUP
-
server
private final MinecraftServer server
-
running
public volatile boolean running
-
channels
private final java.util.List<io.netty.channel.ChannelFuture> channels
-
connections
private final java.util.List<NetworkManager> connections
-
-
Constructor Detail
-
NetworkSystem
public NetworkSystem(MinecraftServer p_i45292_1_)
-
-
Method Detail
-
startTcpServerListener
public void startTcpServerListener(@Nullable java.net.InetAddress p_151265_1_, int p_151265_2_) throws java.io.IOException
- Throws:
java.io.IOException
-
startMemoryChannel
public java.net.SocketAddress startMemoryChannel()
-
stop
public void stop()
-
tick
public void tick()
-
getServer
public MinecraftServer getServer()
-
-