public interface ServerMultiReceiver extends ServerReceiver
| 限定符和类型 | 方法和说明 |
|---|---|
default @Nullable Client |
getClient(String name)
Get the client by given name
|
List<Client> |
getClients(String name)
Get the list of the clients with given name
|
void |
sendPacket(int id,
Packet packet)
Send packet to the special client
|
isConnected, registerPackHandler, sendPacketvoid sendPacket(int id,
Packet packet)
id - the client idpacket - the packetList<Client> getClients(String name)
name - the client name@Nullable default @Nullable Client getClient(String name)
ServerReceivergetClient 在接口中 ServerReceivername - the client nameCopyright © 2022. All rights reserved.