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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents a packet message that includes a packet ID.static interfaceMessage.PacketBase<T extends MessageBuffer>Represents a packet message with an unknown packet ID.static interfaceMessage.PacketWrapped<T extends MessageBuffer,P> Represents a packet message that wraps an underlying packet object.static interfaceRepresents a simple message using the built-inMessageBufferimplementation. -
Method Summary
-
Method Details
-
encode
Encodes the message to the given buffer.- Parameters:
buffer- the buffer to write to
-