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