# Uses of Interface
net.md_5.bungee.api.Callback

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

- ## Uses of Callback in net.md_5.bungee.api

  Methods in net.md_5.bungee.api that return Callback
  Modifier and Type
  Method
  Description
  `Callback<ServerConnectRequest.Result>`
  ServerConnectRequest.`getCallback()`
  Callback to execute post request.
  Methods in net.md_5.bungee.api with parameters of type Callback
  Modifier and Type
  Method
  Description
  `ServerConnectRequest.Builder`
  ServerConnectRequest.Builder.`callback(Callback<ServerConnectRequest.Result> callback)`
  Callback to execute post request.

- ## Uses of Callback in net.md_5.bungee.api.config

  Methods in net.md_5.bungee.api.config with parameters of type Callback
  Modifier and Type
  Method
  Description
  `void`
  ServerInfo.`ping(Callback<ServerPing> callback)`
  Asynchronously gets the current player count on this server.

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

  Methods in net.md_5.bungee.api.connection with parameters of type Callback
  Modifier and Type
  Method
  Description
  `void`
  ProxiedPlayer.`connect(ServerInfo target, Callback<Boolean> callback)`
  Connects / transfers this user to the specified connection, gracefully closing the current one.
  `void`
  ProxiedPlayer.`connect(ServerInfo target, Callback<Boolean> callback, ServerConnectEvent.Reason reason)`
  Connects / transfers this user to the specified connection, gracefully closing the current one.

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

  Constructors in net.md_5.bungee.api.event with parameters of type Callback
  Modifier
  Constructor
  Description
  ``
  `AsyncEvent(Callback<T> done)`
  ``
  `LoginEvent(PendingConnection connection, Callback<LoginEvent> done)`
  ``
  `PostLoginEvent(ProxiedPlayer player, ServerInfo target, Callback<PostLoginEvent> done)`
  ``
  `PreLoginEvent(PendingConnection connection, Callback<PreLoginEvent> done)`
  ``
  `ProxyPingEvent(PendingConnection connection, ServerPing response, Callback<ProxyPingEvent> done)`