Record Class ClientboundCustomQueryPacket

java.lang.Object
java.lang.Record
net.minecraft.network.protocol.login.ClientboundCustomQueryPacket
All Implemented Interfaces:
Packet<ClientLoginPacketListener>, ICustomPacket<ClientboundCustomQueryPacket>

public record ClientboundCustomQueryPacket(int transactionId, CustomQueryPayload payload) extends Record implements Packet<ClientLoginPacketListener>, ICustomPacket<ClientboundCustomQueryPacket>
  • Field Details

    • transactionId

      private final int transactionId
      The field for the transactionId record component.
    • payload

      private final CustomQueryPayload payload
      The field for the payload record component.
    • MAX_PAYLOAD_SIZE

      private static final int MAX_PAYLOAD_SIZE
      See Also:
  • Constructor Details

    • ClientboundCustomQueryPacket

      public ClientboundCustomQueryPacket(FriendlyByteBuf p_179810_)
    • ClientboundCustomQueryPacket

      public ClientboundCustomQueryPacket(int transactionId, CustomQueryPayload payload)
      Creates an instance of a ClientboundCustomQueryPacket record class.
      Parameters:
      transactionId - the value for the transactionId record component
      payload - the value for the payload record component
  • Method Details