public static void triggerOnConnecting() { if (NetworkEvents.onConnecting != null) { NetworkEvents.onConnecting(); } }