YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.network.INetworkManager Interface Reference
Inheritance diagram for net.minecraft.network.INetworkManager:
net.minecraft.network.MemoryConnection net.minecraft.network.TcpConnection

Public Member Functions

void setNetHandler (NetHandler nethandler)
 
void addToSendQueue (Packet packet)
 
void wakeThreads ()
 
void processReadPackets ()
 
SocketAddress getSocketAddress ()
 
void serverShutdown ()
 
int packetSize ()
 
void networkShutdown (String s, Object...var2)
 
void closeConnections ()
 

Member Function Documentation

void net.minecraft.network.INetworkManager.addToSendQueue ( Packet  packet)

Adds the packet to the correct send queue (chunk data packets go to a separate queue).

Implemented in net.minecraft.network.TcpConnection, and net.minecraft.network.MemoryConnection.

void net.minecraft.network.INetworkManager.closeConnections ( )
SocketAddress net.minecraft.network.INetworkManager.getSocketAddress ( )

Return the InetSocketAddress of the remote endpoint

Implemented in net.minecraft.network.TcpConnection, and net.minecraft.network.MemoryConnection.

void net.minecraft.network.INetworkManager.networkShutdown ( String  s,
Object...  var2 
)

Shuts down the network with the specified reason. Closes all streams and sockets, spawns NetworkMasterThread to stop reading and writing threads.

Implemented in net.minecraft.network.TcpConnection, and net.minecraft.network.MemoryConnection.

int net.minecraft.network.INetworkManager.packetSize ( )

returns 0 for memoryConnections

Implemented in net.minecraft.network.TcpConnection, and net.minecraft.network.MemoryConnection.

void net.minecraft.network.INetworkManager.processReadPackets ( )

Checks timeouts and processes all pending read packets.

Implemented in net.minecraft.network.TcpConnection, and net.minecraft.network.MemoryConnection.

void net.minecraft.network.INetworkManager.serverShutdown ( )

Shuts down the server. (Only actually used on the server)

Implemented in net.minecraft.network.TcpConnection, and net.minecraft.network.MemoryConnection.

void net.minecraft.network.INetworkManager.setNetHandler ( NetHandler  nethandler)

Sets the NetHandler for this NetworkManager. Server-only.

Implemented in net.minecraft.network.TcpConnection, and net.minecraft.network.MemoryConnection.

void net.minecraft.network.INetworkManager.wakeThreads ( )

Wakes reader and writer threads

Implemented in net.minecraft.network.TcpConnection, and net.minecraft.network.MemoryConnection.


The documentation for this interface was generated from the following file: