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