Interface MinimalInjector


public interface MinimalInjector
Represents an injector that only gives access to a player's socket.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    disconnect(String message)
    Attempt to disconnect the current client.
    Retrieve the associated address of this player.
    org.bukkit.entity.Player
    Retrieve the hooked player.
    boolean
    Determines if the player is currently connected.
    void
    sendServerPacket(Object packet, NetworkMarker marker, boolean filtered)
    Send a packet to the client.
  • Method Details

    • getAddress

      SocketAddress getAddress()
      Retrieve the associated address of this player.
      Returns:
      The associated address.
    • disconnect

      void disconnect(String message)
      Attempt to disconnect the current client.
      Parameters:
      message - - the message to display.
    • sendServerPacket

      void sendServerPacket(Object packet, NetworkMarker marker, boolean filtered)
      Send a packet to the client.
      Parameters:
      packet - - server packet to send.
      marker - - the network marker.
      filtered - - whether or not the packet will be filtered by our listeners.
    • getPlayer

      org.bukkit.entity.Player getPlayer()
      Retrieve the hooked player.
      Returns:
      The hooked player.
    • isConnected

      boolean isConnected()
      Determines if the player is currently connected.
      Returns:
      true if the player is connected.