Interface IReplyHandler
- All Known Implementing Classes:
NetworkRegistry.ClientReplyHandler
,NetworkRegistry.ServerReplyHandler
public interface IReplyHandler
Interface for handling replies on custom packets.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disconnect
(Component reason) Disconnects the player from the network.void
send
(CustomPacketPayload payload) Sends the given payload back to the player.
-
Method Details
-
send
Sends the given payload back to the player.- Parameters:
payload
- The payload to send back.
-
disconnect
Disconnects the player from the network.
-