Package net.md_5.bungee.api.event

# Class TargetedEvent

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

Direct Known Subclasses:
  `ChatEvent`, `PluginMessageEvent`, `TabCompleteEvent`, `TabCompleteResponseEvent`

public abstract class TargetedEvent extends Event
An event which occurs in the communication between two nodes.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TargetedEvent(Connection sender, Connection receiver)`
  Creates a new `TargetedEvent` instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected boolean`
  `canEqual(Object other)`
  `boolean`
  `equals(Object o)`
  `Connection`
  `getReceiver()`
  Receiver of the action.
  `Connection`
  `getSender()`
  Creator of the action.
  `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

  - ### TargetedEvent

    public TargetedEvent(Connection sender, Connection receiver)
    Creates a new `TargetedEvent` instance.
    Parameters:
      `sender` - Creator of the action.
      `receiver` - Receiver of the action.

- ## Method Details

  - ### getSender

    public Connection getSender()
    Creator of the action.

  - ### getReceiver

    public Connection getReceiver()
    Receiver of the action.

  - ### 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`