Class PlayerRefEvent<KeyType>

java.lang.Object
com.hypixel.hytale.server.core.event.events.player.PlayerRefEvent<KeyType>
Type Parameters:
KeyType - The key type filter for this event call
All Implemented Interfaces:
IBaseEvent<KeyType>, IEvent<KeyType>
Direct Known Subclasses:
PlayerDisconnectEvent

public abstract class PlayerRefEvent<KeyType> extends Object implements IEvent<KeyType>
An event that is affiliated with a specific player, via their PlayerRef instance
  • Constructor Details

    • PlayerRefEvent

      public PlayerRefEvent(@Nonnull PlayerRef playerRef)
      Default Constructor for a PlayerRefEvent instance
      Parameters:
      playerRef - The PlayerRef instance of the affiliated player
  • Method Details

    • getPlayerRef

      @Nonnull public PlayerRef getPlayerRef()
      Returns:
      the PlayerRef instance of the affiliated player
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object