Interface ServerMultiReceiver

    • Method Detail

      • sendPacket

        void sendPacket​(int id,
                        Packet packet)
        Send packet to the special client
        Parameters:
        id - the client id
        packet - the packet
      • getClients

        List<Client> getClients​(String name)
        Get the list of the clients with given name
        Parameters:
        name - the client name
        Returns:
        the list of the clients with given name
      • getClient

        @Nullable
        default @Nullable Client getClient​(String name)
        Description copied from interface: ServerReceiver
        Get the client by given name
        Specified by:
        getClient in interface ServerReceiver
        Parameters:
        name - the client name
        Returns:
        the client