Record Class ServerboundCustomQueryAnswerPacket

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

public record ServerboundCustomQueryAnswerPacket(int transactionId, @Nullable CustomQueryAnswerPayload payload) extends Record implements Packet<ServerLoginPacketListener>, ICustomPacket<ServerboundCustomQueryAnswerPacket>
  • Field Details

    • transactionId

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

      @Nullable private final CustomQueryAnswerPayload payload
      The field for the payload record component.
    • MAX_PAYLOAD_SIZE

      private static final int MAX_PAYLOAD_SIZE
      See Also:
  • Constructor Details

    • ServerboundCustomQueryAnswerPacket

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