Interface ChannelCategoryAttachableListenerManager

    • Method Detail

      • getServerChannelChangeNsfwFlagListeners

        List<ServerChannelChangeNsfwFlagListener> getServerChannelChangeNsfwFlagListeners​()
        Gets a list with all registered ServerChannelChangeNsfwFlagListeners.
        Returns:
        A list with all registered ServerChannelChangeNsfwFlagListeners.
      • addChannelCategoryAttachableListener

        <T extends ChannelCategoryAttachableListener & ObjectAttachableListenerCollection<ListenerManager<? extends ChannelCategoryAttachableListener>> addChannelCategoryAttachableListener​(T listener)
        Adds a listener that implements one or more ChannelCategoryAttachableListeners. Adding a listener multiple times will only add it once and return the same listener managers on each invocation. The order of invocation is according to first addition.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listener - The listener to add.
        Returns:
        The managers for the added listener.
      • removeChannelCategoryAttachableListener

        <T extends ChannelCategoryAttachableListener & ObjectAttachableListener> void removeChannelCategoryAttachableListener​(T listener)
        Removes a listener that implements one or more ChannelCategoryAttachableListeners.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listener - The listener to remove.
      • getChannelCategoryAttachableListeners

        <T extends ChannelCategoryAttachableListener & ObjectAttachableListenerMap<T,List<Class<T>>> getChannelCategoryAttachableListeners​()
        Gets a map with all registered listeners that implement one or more ChannelCategoryAttachableListeners and their assigned listener classes they listen to.
        Type Parameters:
        T - The type of the listeners.
        Returns:
        A map with all registered listeners that implement one or more ChannelCategoryAttachableListeners and their assigned listener classes they listen to.
      • removeListener

        <T extends ChannelCategoryAttachableListener & ObjectAttachableListener> void removeListener​(Class<T> listenerClass,
                                                                                                     T listener)
        Removes a listener from this object.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listener - The listener to remove.