Package net.minestom.server.event.player
Class PlayerSpectateEvent
java.lang.Object
net.minestom.server.event.player.PlayerSpectateEvent
- All Implemented Interfaces:
Event
,EntityEvent
,PlayerEvent
Called by the SpectateListener when a player starts spectating an entity.
-
Constructor Details
-
PlayerSpectateEvent
-
-
Method Details
-
getTarget
-
getPlayer
Description copied from interface:PlayerEvent
Gets the player.- Specified by:
getPlayer
in interfacePlayerEvent
- Returns:
- the player
-