Interface ServerChannelAttachableListenerManager

    • Method Detail

      • getServerChannelChangePositionListeners

        List<ServerChannelChangePositionListener> getServerChannelChangePositionListeners​()
        Gets a list with all registered ServerChannelChangePositionListeners.
        Returns:
        A list with all registered ServerChannelChangePositionListeners.
      • getServerChannelChangeOverwrittenPermissionsListeners

        List<ServerChannelChangeOverwrittenPermissionsListener> getServerChannelChangeOverwrittenPermissionsListeners​()
        Gets a list with all registered ServerChannelChangeOverwrittenPermissionsListeners.
        Returns:
        A list with all registered ServerChannelChangeOverwrittenPermissionsListeners.
      • getServerChannelDeleteListeners

        List<ServerChannelDeleteListener> getServerChannelDeleteListeners​()
        Gets a list with all registered ServerChannelDeleteListeners.
        Returns:
        A list with all registered ServerChannelDeleteListeners.
      • getServerChannelChangeNameListeners

        List<ServerChannelChangeNameListener> getServerChannelChangeNameListeners​()
        Gets a list with all registered ServerChannelChangeNameListeners.
        Returns:
        A list with all registered ServerChannelChangeNameListeners.
      • addServerChannelAttachableListener

        <T extends ServerChannelAttachableListener & ObjectAttachableListenerCollection<ListenerManager<? extends ServerChannelAttachableListener>> addServerChannelAttachableListener​(T listener)
        Adds a listener that implements one or more ServerChannelAttachableListeners. 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.
      • removeServerChannelAttachableListener

        <T extends ServerChannelAttachableListener & ObjectAttachableListener> void removeServerChannelAttachableListener​(T listener)
        Removes a listener that implements one or more ServerChannelAttachableListeners.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listener - The listener to remove.
      • getServerChannelAttachableListeners

        <T extends ServerChannelAttachableListener & ObjectAttachableListenerMap<T,List<Class<T>>> getServerChannelAttachableListeners​()
        Gets a map with all registered listeners that implement one or more ServerChannelAttachableListeners 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 ServerChannelAttachableListeners and their assigned listener classes they listen to.
      • removeListener

        <T extends ServerChannelAttachableListener & 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.