Interface Message<T extends MessageBuffer>

All Known Subinterfaces:
Message.Packet, Message.PacketBase<T>, Message.PacketWrapped<T,P>, Message.Simple

public interface Message<T extends MessageBuffer>
Represents a message that can be sent over the network.
Since:
2.9.2
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents a packet message that includes a packet ID.
    static interface 
    Represents a packet message with an unknown packet ID.
    static interface 
    Represents a packet message that wraps an underlying packet object.
    static interface 
    Represents a simple message using the built-in MessageBuffer implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(T buffer)
    Encodes the message to the given buffer.
  • Method Details

    • encode

      void encode(T buffer)
      Encodes the message to the given buffer.
      Parameters:
      buffer - the buffer to write to