Class ForwardedDataSender
java.lang.Object
net.ME1312.SubData.Client.Library.ForwardedDataSender
- All Implemented Interfaces:
DataSender
,SubDataSender
Forwarded Data Sender Class
-
Constructor Summary
ConstructorDescriptionForwardedDataSender
(SubDataClient client, UUID id) Create a Forwarded DataSender -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get 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 Sendervoid
sendPacket
(PacketOut... packets) Send a packet to the Sender
-
Constructor Details
-
ForwardedDataSender
Create a Forwarded DataSender- Parameters:
client
- SubDataClientid
- Forward ID
-
-
Method Details
-
ping
Description copied from interface:DataSender
Ping the Sender- Specified by:
ping
in interfaceDataSender
- Parameters:
response
- Ping Response
-
sendPacket
Description copied from interface:SubDataSender
Send a packet to the Sender- Specified by:
sendPacket
in interfaceSubDataSender
- Parameters:
packets
- Packets to send
-
sendMessage
Description copied from interface:DataSender
Send a message to the Sender- Specified by:
sendMessage
in interfaceDataSender
- Parameters:
messages
- Messages to send
-
getConnection
Description copied from interface:SubDataSender
Get the Client that connects this Sender to us- Specified by:
getConnection
in interfaceDataSender
- Specified by:
getConnection
in interfaceSubDataSender
- Returns:
- Client
-
getProtocol
Description copied from interface:SubDataSender
Get the Protocol used by this Sender- Specified by:
getProtocol
in interfaceDataSender
- Specified by:
getProtocol
in interfaceSubDataSender
- Returns:
- Sender Protocol
-
getID
Description copied from interface:DataSender
Get the ID of this Sender- Specified by:
getID
in interfaceDataSender
- Returns:
- Sender ID
-
equals
-