Interface ICustomQueryPayloadWithBuffer

All Superinterfaces:
CustomQueryAnswerPayload, CustomQueryPayload
All Known Implementing Classes:
SimpleQueryPayload

public interface ICustomQueryPayloadWithBuffer extends CustomQueryPayload, CustomQueryAnswerPayload
Forge extension interface to deal with custom forge query payloads.
  • Method Details

    • buffer

      FriendlyByteBuf buffer()
      The buffer that created the query payload.
      Returns:
      The buffer
    • packetIndex

      int packetIndex()
      The internal packet processing index for the query.
      Returns:
      The packet index.
    • getDirection

      default LoginNetworkDirection getDirection(Packet<?> packet)
      The network direction in which this payload can be transmitted.
      Parameters:
      packet - The packet to get the network direction for if this payload was transmitted
      Returns:
      The network direction for this payload.