public final class SourceQueryPacketDecoderProvider extends Object
PacketDecoder
Constructor and Description |
---|
SourceQueryPacketDecoderProvider() |
Modifier and Type | Method and Description |
---|---|
static <T extends PacketDecoder<P>,P extends SourceQueryPacket> |
getDecoder(int type)
Get a singleton instance of a
PacketDecoder based on the type provided. |
public static <T extends PacketDecoder<P>,P extends SourceQueryPacket> T getDecoder(int type)
PacketDecoder
based on the type provided.T
- The concrete capture type of PacketDecoder
P
- a P classtype
- The lookup header typePacketDecoder
SourceQuery.SOURCE_PACKET_TYPE_SINGLE
,
SourceQuery.SOURCE_PACKET_TYPE_SPLIT
Copyright © 2016–2024. All rights reserved.