Class ClientboundCustomQueryPacket
java.lang.Object
net.minecraft.network.protocol.login.ClientboundCustomQueryPacket
- All Implemented Interfaces:
Packet<ClientLoginPacketListener>
,ICustomPacket<ClientboundCustomQueryPacket>
public class ClientboundCustomQueryPacket
extends Object
implements Packet<ClientLoginPacketListener>, ICustomPacket<ClientboundCustomQueryPacket>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final FriendlyByteBuf
private final ResourceLocation
private static final int
private final int
-
Constructor Summary
ConstructorDescriptionClientboundCustomQueryPacket
(int p_179806_, ResourceLocation p_179807_, FriendlyByteBuf p_179808_) ClientboundCustomQueryPacket
(FriendlyByteBuf p_179810_) -
Method Summary
Modifier and TypeMethodDescriptiongetData()
int
getIndex()
@Nullable FriendlyByteBuf
Returns a unsafe reference to this packet's internal data.getName()
int
void
handle
(ClientLoginPacketListener p_134754_) void
write
(FriendlyByteBuf p_134757_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.network.ICustomPacket
getDirection, getThis
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
MAX_PAYLOAD_SIZE
private static final int MAX_PAYLOAD_SIZE- See Also:
-
transactionId
private final int transactionId -
identifier
-
data
-
-
Constructor Details
-
ClientboundCustomQueryPacket
public ClientboundCustomQueryPacket(int p_179806_, ResourceLocation p_179807_, FriendlyByteBuf p_179808_) -
ClientboundCustomQueryPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientLoginPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientLoginPacketListener>
-
getTransactionId
public int getTransactionId() -
getIdentifier
-
getData
-
getIndex
public int getIndex()- Specified by:
getIndex
in interfaceICustomPacket<ClientboundCustomQueryPacket>
-
getName
- Specified by:
getName
in interfaceICustomPacket<ClientboundCustomQueryPacket>
-
getInternalData
Description copied from interface:ICustomPacket
Returns a unsafe reference to this packet's internal data. Any modifications to this buffer will be reflected in the main buffer.- Specified by:
getInternalData
in interfaceICustomPacket<ClientboundCustomQueryPacket>
-