Package net.ME1312.SubData.Client
Interface DataSender
- All Known Implementing Classes:
DataClient
public interface DataSender
SubData Data Sender API Layout Class
-
Method Summary
Modifier and TypeMethodDescriptionGet the Client that connects this Sender to usgetID()
Get the ID of this SenderGet the Protocol used by this Sendervoid
ping
(Consumer<PingResponse> response) Ping the Sendervoid
sendMessage
(MessageOut... messages) Send a message to the Sender
-
Method Details
-
ping
Ping the Sender- Parameters:
response
- Ping Response
-
sendMessage
Send a message to the Sender- Parameters:
messages
- Messages to send
-
getConnection
DataClient getConnection()Get the Client that connects this Sender to us- Returns:
- Client
-
getProtocol
DataProtocol getProtocol()Get the Protocol used by this Sender- Returns:
- Sender Protocol
-
getID
UUID getID()Get the ID of this Sender- Returns:
- Sender ID
-