Example #1
0
 String connectionReceived(NetLoginHandler netHandler, NetworkManager manager) {
   for (IConnectionHandler handler : connectionHandlers) {
     String kick = handler.connectionReceived(netHandler, manager);
     if (!Strings.isNullOrEmpty(kick)) {
       return kick;
     }
   }
   return null;
 }
Example #2
0
 void connectionClosed(NetworkManager manager) {
   for (IConnectionHandler handler : connectionHandlers) {
     handler.connectionClosed(manager);
   }
 }
Example #3
0
 void clientLoggedIn(NetHandler clientHandler, NetworkManager manager, Packet1Login login) {
   generateChannelRegistration(clientHandler.getPlayer(), clientHandler, manager);
   for (IConnectionHandler handler : connectionHandlers) {
     handler.clientLoggedIn(clientHandler, manager, login);
   }
 }
Example #4
0
 void connectionOpened(
     NetHandler netClientHandler, MinecraftServer server, NetworkManager networkManager) {
   for (IConnectionHandler handler : connectionHandlers) {
     handler.connectionOpened(netClientHandler, server, networkManager);
   }
 }
Example #5
0
 void connectionOpened(
     NetHandler netClientHandler, String server, int port, NetworkManager networkManager) {
   for (IConnectionHandler handler : connectionHandlers) {
     handler.connectionOpened(netClientHandler, server, port, networkManager);
   }
 }
Example #6
0
 void playerLoggedIn(EntityPlayerMP player, NetServerHandler netHandler, NetworkManager manager) {
   generateChannelRegistration(player, netHandler, manager);
   for (IConnectionHandler handler : connectionHandlers) {
     handler.playerLoggedIn((Player) player, netHandler, manager);
   }
 }