src/main/java/brokenlib/common/notification/NotificationManager.java
/**
     * Creates a manager for the notification system which allows you to send notifications to the clients. The manager
     * has to be queried during {@link LoaderState#INITIALIZATION} and only once. You can call this on both side but
     * it only be useful on server side.
     * @return a dedicated manager for your mod
     */
Creates a manager for the notification system which allows you to send notifications to the clients. The manager
has to be queried during  LoaderState#INITIALIZATION and only once. You can call this on both side but
it only be useful on server side.
@return a dedicated manager for your mod
Creates a manager for the notification system which allows you to send notifications to the clients . The manager has to be queried during LoaderState#INITIALIZATION and only once . You can call this on both side but it only be useful on server side . @return a dedicated manager for your mod
public DedicatedNotificationManager queryDedicatedManager() {
        Preconditions.checkState(
                Loader.instance().getLoaderState().ordinal() == LoaderState.INITIALIZATION.ordinal(),
                "The manager should be queried in initialization state."
        );
        String modId = Loader.instance().activeModContainer().getModId();
        Preconditions.checkState(!this.queriedManagers.containsKey(modId),
                "The manager should be queried only once.");
        DedicatedNotificationManager manager =  new DedicatedNotificationManager(modId);
        this.queriedManagers.put(modId, new WeakReference<>(manager));
        return manager;
    }
public DedicatedNotificationManager queryDedicatedManager ( ) { Preconditions . checkState ( Loader . instance ( ) . getLoaderState ( ) . ordinal ( ) == LoaderState . INITIALIZATION . ordinal ( ) , "The manager should be queried in initialization state." ) ; String modId = Loader . instance ( ) . activeModContainer ( ) . getModId ( ) ; Preconditions . checkState ( ! this . queriedManagers . containsKey ( modId ) , "The manager should be queried only once." ) ; DedicatedNotificationManager manager = new DedicatedNotificationManager ( modId ) ; this . queriedManagers . put ( modId , new WeakReference < > ( manager ) ) ; return manager ; }
Creates a manager for the notification system which allows you to send notifications to the clients.
Creates a manager for the notification system which allows you to send notifications to the clients .