Interface IReplyHandler
- All Known Implementing Classes:
NetworkRegistry.ClientReplyHandler,NetworkRegistry.ServerReplyHandler
public interface IReplyHandler
Interface for handling replies on custom packets.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisconnect(Component reason) Disconnects the player from the network.voidsend(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.
-