Uses of Class
top.focess.qq.api.net.packet.Packet
-
Packages that use Packet Package Description top.focess.qq.api.net top.focess.qq.api.net.packet -
-
Uses of Packet in top.focess.qq.api.net
Classes in top.focess.qq.api.net with type parameters of type Packet Modifier and Type Interface Description interfacePackHandler<T extends Packet>Represents a packet handler to define how to handle packet.Methods in top.focess.qq.api.net with type parameters of type Packet Modifier and Type Method Description <T extends Packet>
voidClientReceiver. register(Plugin plugin, Class<T> c, PackHandler<T> packHandler)Register packet handler for server<T extends Packet>
voidServerReceiver. register(Plugin plugin, String client, Class<T> c, PackHandler<T> packHandler)Register packet handler for special clientstatic <T extends Packet>
voidPacketPreCodec. registerPacketCodec(int packetId, PacketCodec<T> packetCodec)Register the packet codec for the special packet id<T extends Packet>
booleanPacketPreCodec. writePacket(T packet)Write a packetMethods in top.focess.qq.api.net that return Packet Modifier and Type Method Description @Nullable PacketPacketPreCodec. readPacket()Read a packetMethods in top.focess.qq.api.net with parameters of type Packet Modifier and Type Method Description voidClientReceiver. sendPacket(Packet packet)Send the packet to the servervoidServerMultiReceiver. sendPacket(int id, Packet packet)Send packet to the special clientvoidServerReceiver. sendPacket(String client, Packet packet)Send packet to the special client -
Uses of Packet in top.focess.qq.api.net.packet
Classes in top.focess.qq.api.net.packet with type parameters of type Packet Modifier and Type Class Description classPacketCodec<T extends Packet>The codec for special packet type.Subclasses of Packet in top.focess.qq.api.net.packet Modifier and Type Class Description classClientPacketThe class indicates that this packet is for client side.classClientPackPacketUsed to pack package sent by client.classConnectedPacketUsed to tell client the id and the tokenclassConnectPacketUsed to connect to the server.classDisconnectedPacketUsed to tell client the connection has lost.classDisconnectPacketUsed to tell server the connection has lost.classHeartPacketUsed to tell server the connection is not lost.classMessagePacketUsed to send String message.classServerPacketThe class indicates that this packet is for server side.classServerPackPacketUsed to pack package sent by server.classSidedConnectPacketUsed to connect to the server.classWaitPacketUsed to create receive-packet time for client and send-packet time for server.Methods in top.focess.qq.api.net.packet that return Packet Modifier and Type Method Description PacketClientPackPacket. getPacket()PacketServerPackPacket. getPacket()Constructors in top.focess.qq.api.net.packet with parameters of type Packet Constructor Description ClientPackPacket(int clientId, String token, Packet packet)Constructs a ClientPackPacketServerPackPacket(Packet packet)Constructs a ServerPackPacket
-