类 ClientboundCustomQueryPacket
java.lang.Object
net.minecraft.network.protocol.login.ClientboundCustomQueryPacket
public class ClientboundCustomQueryPacket
extends Object
implements Packet<ClientLoginPacketListener>, ICustomPacket<ClientboundCustomQueryPacket>
-
字段概要
字段修饰符和类型字段说明private final FriendlyByteBuf
private final ResourceLocation
private static final int
private final int
-
构造器概要
构造器构造器说明ClientboundCustomQueryPacket
(int pTransactionId, ResourceLocation pIdentifier, FriendlyByteBuf pData) -
方法概要
修饰符和类型方法说明getData()
int
getIndex()
@Nullable FriendlyByteBuf
Returns a unsafe reference to this packet's internal data.getName()
int
void
handle
(ClientLoginPacketListener pHandler) void
write
(FriendlyByteBuf pBuffer) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.network.ICustomPacket
getDirection, getThis
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable
-
字段详细资料
-
MAX_PAYLOAD_SIZE
private static final int MAX_PAYLOAD_SIZE- 另请参阅:
-
transactionId
private final int transactionId -
identifier
-
data
-
-
构造器详细资料
-
ClientboundCustomQueryPacket
public ClientboundCustomQueryPacket(int pTransactionId, ResourceLocation pIdentifier, FriendlyByteBuf pData) -
ClientboundCustomQueryPacket
-
-
方法详细资料
-
write
- 指定者:
write
在接口中Packet<ClientLoginPacketListener>
-
handle
- 指定者:
handle
在接口中Packet<ClientLoginPacketListener>
-
getTransactionId
public int getTransactionId() -
getIdentifier
-
getData
-
getIndex
public int getIndex()- 指定者:
getIndex
在接口中ICustomPacket<ClientboundCustomQueryPacket>
-
getName
- 指定者:
getName
在接口中ICustomPacket<ClientboundCustomQueryPacket>
-
getInternalData
从接口复制的说明:ICustomPacket
Returns a unsafe reference to this packet's internal data. Any modifications to this buffer will be reflected in the main buffer.
-