Package org.bukkit.event.player
Class PlayerChangedWorldEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- org.bukkit.event.player.PlayerEvent
-
- org.bukkit.event.player.PlayerChangedWorldEvent
-
public class PlayerChangedWorldEvent extends PlayerEvent
Called when a player switches to another world.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Field Summary
-
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
-
Constructor Summary
Constructors Constructor Description PlayerChangedWorldEvent(Player player, World from)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description World
getFrom()
Gets the world the player is switching from.static HandlerList
getHandlerList()
HandlerList
getHandlers()
-
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Method Detail
-
getFrom
@NotNull public World getFrom()
Gets the world the player is switching from.- Returns:
- player's previous world
-
getHandlers
@NotNull public HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
getHandlerList
@NotNull public static HandlerList getHandlerList()
-
-