Package net.md_5.bungee.api.event

# Class PlayerHandshakeEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.PlayerHandshakeEvent

public class PlayerHandshakeEvent extends Event
Event called to represent a player first making their presence and username known.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PlayerHandshakeEvent(PendingConnection connection, Handshake handshake)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected boolean`
  `canEqual(Object other)`
  `boolean`
  `equals(Object o)`
  `PendingConnection`
  `getConnection()`
  Connection attempting to login.
  `Handshake`
  `getHandshake()`
  The handshake.
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class net.md_5.bungee.api.plugin.Event

  `postCall`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### PlayerHandshakeEvent

    public PlayerHandshakeEvent(PendingConnection connection, Handshake handshake)

- ## Method Details

  - ### getConnection

    public PendingConnection getConnection()
    Connection attempting to login.

  - ### getHandshake

    public Handshake getHandshake()
    The handshake.

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### canEqual

    protected boolean canEqual(Object other)

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`