Interface IReplyHandler

All Known Implementing Classes:
NetworkRegistry.ClientReplyHandler, NetworkRegistry.ServerReplyHandler

public interface IReplyHandler
Interface for handling replies on custom packets.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disconnects the player from the network.
    void
    Sends the given payload back to the player.
  • Method Details

    • send

      void send(CustomPacketPayload payload)
      Sends the given payload back to the player.
      Parameters:
      payload - The payload to send back.
    • disconnect

      void disconnect(Component reason)
      Disconnects the player from the network.