cpw.mods.fml.common.network
Class NetworkRegistry

java.lang.Object
  extended by cpw.mods.fml.common.network.NetworkRegistry

public class NetworkRegistry
extends Object


Constructor Summary
NetworkRegistry()
           
 
Method Summary
static NetworkRegistry instance()
           
 boolean isChannelActive(String channel, Player player)
          Is the specified channel active for the player?
 void registerChannel(IPacketHandler handler, String channelName)
          register a channel to a mod
 void registerChannel(IPacketHandler handler, String channelName, Side side)
           
 void registerConnectionHandler(IConnectionHandler handler)
          Register a connection handler
 void registerGuiHandler(Object mod, IGuiHandler handler)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkRegistry

public NetworkRegistry()
Method Detail

instance

public static NetworkRegistry instance()

isChannelActive

public boolean isChannelActive(String channel,
                               Player player)
Is the specified channel active for the player?

Parameters:
channel -
player -
Returns:

registerChannel

public void registerChannel(IPacketHandler handler,
                            String channelName)
register a channel to a mod

Parameters:
container -
channelName -

registerChannel

public void registerChannel(IPacketHandler handler,
                            String channelName,
                            Side side)

registerConnectionHandler

public void registerConnectionHandler(IConnectionHandler handler)
Register a connection handler

Parameters:
handler -

registerGuiHandler

public void registerGuiHandler(Object mod,
                               IGuiHandler handler)