# Uses of Interface
net.md_5.bungee.api.connection.Connection

Packages that use Connection
Package
Description
net.md_5.bungee.api.connection
net.md_5.bungee.api.event

- ## Uses of Connection in net.md_5.bungee.api.connection

  Subinterfaces of Connection in net.md_5.bungee.api.connection
  Modifier and Type
  Interface
  Description
  `interface`
  `ConnectedPlayer`
  Represents a player physically connected to the world hosted on this server.
  `interface`
  `PendingConnection`
  Represents a user attempting to log into the proxy.
  `interface`
  `ProxiedPlayer`
  Represents a player whose connection is being connected to somewhere else, whether it be a remote or embedded server.
  `interface`
  `Server`
  Represents a destination which this proxy might connect to.

- ## Uses of Connection in net.md_5.bungee.api.event

  Methods in net.md_5.bungee.api.event that return Connection
  Modifier and Type
  Method
  Description
  `Connection`
  TargetedEvent.`getReceiver()`
  Receiver of the action.
  `Connection`
  TargetedEvent.`getSender()`
  Creator of the action.
  Constructors in net.md_5.bungee.api.event with parameters of type Connection
  Modifier
  Constructor
  Description
  ``
  `ChatEvent(Connection sender, Connection receiver, String message)`
  ``
  `PluginMessageEvent(Connection sender, Connection receiver, String tag, byte[] data)`
  ``
  `TabCompleteEvent(Connection sender, Connection receiver, String cursor, List<String> suggestions)`
  ``
  `TabCompleteResponseEvent(Connection sender, Connection receiver, List<String> suggestions)`
  ``
  `TargetedEvent(Connection sender, Connection receiver)`
  Creates a new `TargetedEvent` instance.