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 interface
ChangeEntityWorldEvent.Post
static interface
ChangeEntityWorldEvent.Pre
static interface
ChangeEntityWorldEvent.Reposition
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerWorld
destinationWorld()
Entity
entity()
Gets theEntity
.ServerWorld
originalDestinationWorld()
ServerWorld
originalWorld()
-
-
-
Method Detail
-
originalWorld
ServerWorld originalWorld()
Gets theworld
theEntity
is 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
-
-