public void handleCustomPayload(Packet250CustomPayload var1)
    {
        ModLoader.receivePacket(var1);
        MessageManager inst = MessageManager.getInstance();
        if (var1.channel.equals("REGISTER")) 
        {
            try 
            {
                String channels = new String(var1.data, "UTF8");
                for (String channel : channels.split("\0")) 
                {
                    inst.addActiveChannel(netManager, channel);
                }
            } 
            catch (UnsupportedEncodingException ex) 
            {
                ModLoader.throwException("NetClientHandler.handleCustomPayload", ex);
            }
        } 
        else if (var1.channel.equals("UNREGISTER")) 
        {
            try 
            {
                String channels = new String(var1.data, "UTF8");
                for (String channel : channels.split("\0")) 
                {
                    inst.removeActiveChannel(netManager, channel);
                }
            }
            catch (UnsupportedEncodingException ex) 
            {
                ModLoader.throwException("NetClientHandler.handleCustomPayload", ex);
            }
        } 
        else 
        {
            inst.dispatchIncomingMessage(netManager, var1.channel, var1.data);
        }
    }