Interface RespawnPlayerEvent
-
- All Superinterfaces:
ChangeEntityWorldEvent
,Event
- All Known Subinterfaces:
RespawnPlayerEvent.Post
,RespawnPlayerEvent.Recreate
,RespawnPlayerEvent.SelectWorld
public interface RespawnPlayerEvent extends ChangeEntityWorldEvent
Called when aplayer
is undergoing a respawn.Examples of respawn triggers include:
- Death
- Returning from
WorldTypes.THE_END
via anEndPortal
(Vanilla Minecraft)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RespawnPlayerEvent.Post
static interface
RespawnPlayerEvent.Recreate
static interface
RespawnPlayerEvent.SelectWorld
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.ChangeEntityWorldEvent
ChangeEntityWorldEvent.Pre, ChangeEntityWorldEvent.Reposition
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerPlayer
entity()
Gets theplayer
.-
Methods inherited from interface org.spongepowered.api.event.entity.ChangeEntityWorldEvent
destinationWorld, originalDestinationWorld, originalWorld
-
-
-
-
Method Detail
-
entity
ServerPlayer entity()
Gets theplayer
.- Specified by:
entity
in interfaceChangeEntityWorldEvent
- Returns:
- The player
-
-