public abstract class SourceQueryPacket extends AbstractPacket
Constructor and Description |
---|
SourceQueryPacket(int type,
io.netty.buffer.ByteBuf data)
Creates a new source query packet with the type and underlying payload
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
The type of this
SourceQueryPacket |
content, contentToString, copy, duplicate, equals, hashCode, refCnt, release, release, replace, retain, retain, retainedDuplicate, toString, touch, touch
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public SourceQueryPacket(int type, io.netty.buffer.ByteBuf data)
type
- The type of this packet. Single (0xFFFFFFFF or -1) or Split-packet (0xFFFFFFFE or -2).data
- The underlying payload of this packet wrapped in ByteBuf
SourceQuery.SOURCE_PACKET_TYPE_SINGLE
,
SourceQuery.SOURCE_PACKET_TYPE_SPLIT
public final int getType()
SourceQueryPacket
SourceQuery.SOURCE_PACKET_TYPE_SINGLE
,
SourceQuery.SOURCE_PACKET_TYPE_SPLIT
Copyright © 2016–2024. All rights reserved.