程序包 org.bukkit.event.player

# 类 PlayerTeleportEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerMoveEvent
org.bukkit.event.player.PlayerTeleportEvent

所有已实现的接口:
  `Cancellable`

直接已知子类:
  `PlayerPortalEvent`

public class PlayerTeleportEvent extends PlayerMoveEvent
玩家传送事件.

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  类
  说明
  `static enum`
  `PlayerTeleportEvent.TeleportCause`

  ## 从类继承的嵌套类/接口 org.bukkit.event.Event

  `Event.Result`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.event.player.PlayerEvent

  `player`

- ## 构造器概要

  构造器
  构造器
  说明
  `PlayerTeleportEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to)`
  `PlayerTeleportEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull PlayerTeleportEvent.TeleportCause`
  `getCause()`
  获得此次传送的传送理由.
  `static @NotNull HandlerList`
  `getHandlerList()`
  `@NotNull HandlerList`
  `getHandlers()`

  ### 从类继承的方法 org.bukkit.event.player.PlayerMoveEvent

  `getFrom, getTo, isCancelled, setCancelled, setFrom, setTo`

  ### 从类继承的方法 org.bukkit.event.player.PlayerEvent

  `getPlayer`

  ### 从类继承的方法 org.bukkit.event.Event

  `getEventName, isAsynchronous`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### PlayerTeleportEvent

    public PlayerTeleportEvent(@NotNull @NotNull Player player, @NotNull @NotNull Location from, @Nullable @Nullable Location to)

  - ### PlayerTeleportEvent

    public PlayerTeleportEvent(@NotNull @NotNull Player player, @NotNull @NotNull Location from, @Nullable @Nullable Location to, @NotNull @NotNull PlayerTeleportEvent.TeleportCause cause)

- ## 方法详细资料

  - ### getCause

    @NotNull public @NotNull PlayerTeleportEvent.TeleportCause getCause()
    获得此次传送的传送理由.

    原文:Gets the cause of this teleportation event

    返回:
      传送理由

  - ### getHandlers

    @NotNull public @NotNull HandlerList getHandlers()
    覆盖:
      `getHandlers` 在类中 `PlayerMoveEvent`

  - ### getHandlerList

    @NotNull public static @NotNull HandlerList getHandlerList()