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

Public Member Functions

 MemoryConnection (ILogAgent par1ILogAgent, NetHandler par2NetHandler)
 
void setNetHandler (NetHandler par1NetHandler)
 
void addToSendQueue (Packet par1Packet)
 
void wakeThreads ()
 
void closeConnections ()
 
boolean isConnectionActive ()
 
void processReadPackets ()
 
SocketAddress getSocketAddress ()
 
void serverShutdown ()
 
void networkShutdown (String par1Str, Object...par2ArrayOfObj)
 
int packetSize ()
 
void pairWith (MemoryConnection par1MemoryConnection)
 
boolean isGamePaused ()
 
void setGamePaused (boolean par1)
 
MemoryConnection getPairedConnection ()
 
void processOrCachePacket (Packet par1Packet)
 

Constructor & Destructor Documentation

net.minecraft.network.MemoryConnection.MemoryConnection ( ILogAgent  par1ILogAgent,
NetHandler  par2NetHandler 
)

Member Function Documentation

void net.minecraft.network.MemoryConnection.addToSendQueue ( Packet  par1Packet)

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

Implements net.minecraft.network.INetworkManager.

void net.minecraft.network.MemoryConnection.closeConnections ( )
MemoryConnection net.minecraft.network.MemoryConnection.getPairedConnection ( )
SocketAddress net.minecraft.network.MemoryConnection.getSocketAddress ( )

Return the InetSocketAddress of the remote endpoint

Implements net.minecraft.network.INetworkManager.

boolean net.minecraft.network.MemoryConnection.isConnectionActive ( )
boolean net.minecraft.network.MemoryConnection.isGamePaused ( )
void net.minecraft.network.MemoryConnection.networkShutdown ( String  par1Str,
Object...  par2ArrayOfObj 
)

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

Implements net.minecraft.network.INetworkManager.

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

returns 0 for memoryConnections

Implements net.minecraft.network.INetworkManager.

void net.minecraft.network.MemoryConnection.pairWith ( MemoryConnection  par1MemoryConnection)
void net.minecraft.network.MemoryConnection.processOrCachePacket ( Packet  par1Packet)

acts immiditally if isWritePacket, otherwise adds it to the readCache to be processed next tick

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

Checks timeouts and processes all pending read packets.

Implements net.minecraft.network.INetworkManager.

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

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

Implements net.minecraft.network.INetworkManager.

void net.minecraft.network.MemoryConnection.setGamePaused ( boolean  par1)
void net.minecraft.network.MemoryConnection.setNetHandler ( NetHandler  par1NetHandler)

Sets the NetHandler for this NetworkManager. Server-only.

Implements net.minecraft.network.INetworkManager.

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

Wakes reader and writer threads

Implements net.minecraft.network.INetworkManager.


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