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
FieldsModifier and TypeFieldDescriptionprivate final FriendlyByteBufprivate final ResourceLocationprivate static final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionClientboundCustomQueryPacket(int p_179806_, ResourceLocation p_179807_, FriendlyByteBuf p_179808_) ClientboundCustomQueryPacket(FriendlyByteBuf p_179810_) -
Method Summary
Modifier and TypeMethodDescriptiongetData()intgetIndex()@Nullable FriendlyByteBufReturns a unsafe reference to this packet's internal data.getName()intvoidhandle(ClientLoginPacketListener p_134754_) voidwrite(FriendlyByteBuf p_134757_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.network.ICustomPacket
getDirection, getThisMethods 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:
writein interfacePacket<ClientLoginPacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientLoginPacketListener>
-
getTransactionId
public int getTransactionId() -
getIdentifier
-
getData
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceICustomPacket<ClientboundCustomQueryPacket>
-
getName
- Specified by:
getNamein interfaceICustomPacket<ClientboundCustomQueryPacket>
-
getInternalData
Description copied from interface:ICustomPacketReturns a unsafe reference to this packet's internal data. Any modifications to this buffer will be reflected in the main buffer.- Specified by:
getInternalDatain interfaceICustomPacket<ClientboundCustomQueryPacket>
-