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 SummaryFieldsModifier and TypeFieldDescriptionprivate final FriendlyByteBufprivate final ResourceLocationprivate static final intprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionClientboundCustomQueryPacket(int p_179806_, ResourceLocation p_179807_, FriendlyByteBuf p_179808_) ClientboundCustomQueryPacket(FriendlyByteBuf p_179810_) 
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.network.ICustomPacketgetDirection, getThisMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable
- 
Field Details- 
MAX_PAYLOAD_SIZEprivate static final int MAX_PAYLOAD_SIZE- See Also:
 
- 
transactionIdprivate final int transactionId
- 
identifier
- 
data
 
- 
- 
Constructor Details- 
ClientboundCustomQueryPacketpublic ClientboundCustomQueryPacket(int p_179806_, ResourceLocation p_179807_, FriendlyByteBuf p_179808_) 
- 
ClientboundCustomQueryPacket
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- Packet<ClientLoginPacketListener>
 
- 
handle- Specified by:
- handlein interface- Packet<ClientLoginPacketListener>
 
- 
getTransactionIdpublic int getTransactionId()
- 
getIdentifier
- 
getData
- 
getIndexpublic int getIndex()- Specified by:
- getIndexin interface- ICustomPacket<ClientboundCustomQueryPacket>
 
- 
getName- Specified by:
- getNamein interface- ICustomPacket<ClientboundCustomQueryPacket>
 
- 
getInternalDataDescription 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 interface- ICustomPacket<ClientboundCustomQueryPacket>
 
 
-