Package top.focess.qq.api.net
Class ServerReceiver
- java.lang.Object
-
- top.focess.qq.api.net.ServerReceiver
-
- Direct Known Subclasses:
ServerMultiReceiver
public class ServerReceiver extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected top.focess.net.receiver.ServerReceiverreceiver
-
Constructor Summary
Constructors Constructor Description ServerReceiver(top.focess.net.receiver.ServerReceiver receiver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddisconnect(String client)@Nullable top.focess.net.ClientgetClient(String client)booleanisConnected(String client)<T extends top.focess.net.packet.Packet>
voidregister(Plugin plugin, String client, Class<T> packet, top.focess.net.PackHandler<T> packHandler)voidsendPacket(String s, top.focess.net.packet.Packet packet)voidunregister(Plugin plugin)voidunregisterAll()
-
-
-
Method Detail
-
sendPacket
public void sendPacket(String s, top.focess.net.packet.Packet packet)
-
unregister
public void unregister(Plugin plugin)
-
register
public <T extends top.focess.net.packet.Packet> void register(Plugin plugin, String client, Class<T> packet, top.focess.net.PackHandler<T> packHandler)
-
isConnected
public boolean isConnected(String client)
-
getClient
@Nullable public @Nullable top.focess.net.Client getClient(String client)
-
close
public void close()
-
unregisterAll
public void unregisterAll()
-
disconnect
public void disconnect(String client)
-
-