java.lang.Object
net.minestom.server.event.player.PlayerRespawnEvent
- All Implemented Interfaces:
Event
,EntityEvent
,PlayerEvent
Called when
Player.respawn()
is executed (for custom respawn or as a result of
ClientStatusPacket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the player.Gets the respawn position.void
setRespawnPosition
(Pos respawnPosition) Changes the respawn position.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.event.trait.PlayerEvent
getEntity
-
Constructor Details
-
PlayerRespawnEvent
-
-
Method Details
-
getRespawnPosition
Gets the respawn position.Is by default
Player.getRespawnPoint()
- Returns:
- the respawn position
-
setRespawnPosition
Changes the respawn position.- Parameters:
respawnPosition
- the new respawn position
-
getPlayer
Description copied from interface:PlayerEvent
Gets the player.- Specified by:
getPlayer
in interfacePlayerEvent
- Returns:
- the player
-