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_ENDvia anEndPortal(Vanilla Minecraft)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfaceNested 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:
entityin interfaceChangeEntityWorldEvent- Returns:
- The player
-