Interface ChangeEntityWorldEvent
-
- All Superinterfaces:
Event
- All Known Subinterfaces:
ChangeEntityWorldEvent.Post,ChangeEntityWorldEvent.Pre,ChangeEntityWorldEvent.Reposition,RespawnPlayerEvent,RespawnPlayerEvent.Post,RespawnPlayerEvent.Recreate,RespawnPlayerEvent.SelectWorld
public interface ChangeEntityWorldEvent extends Event
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceChangeEntityWorldEvent.Poststatic interfaceChangeEntityWorldEvent.Prestatic interfaceChangeEntityWorldEvent.Reposition
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerWorlddestinationWorld()Entityentity()Gets theEntity.ServerWorldoriginalDestinationWorld()ServerWorldoriginalWorld()
-
-
-
Method Detail
-
originalWorld
ServerWorld originalWorld()
Gets theworldtheEntityis coming from.One thing to keep in mind is that an implementation may choose to unload worlds, for any reason. Our API guarantees that the destination world will be loaded but we give no guarantee that the origin world is. With that in mind, we highly recommend you check
World.isLoaded()before interacting with this world in any manner.- Returns:
- The world
-
originalDestinationWorld
ServerWorld originalDestinationWorld()
- Returns:
- The world
-
destinationWorld
ServerWorld destinationWorld()
- Returns:
- The world
-
-