枚举的使用
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause
-
org.bukkit.entity中PlayerTeleportEvent.TeleportCause的使用
修饰符和类型方法说明boolean
Entity.teleport
(Entity destination, PlayerTeleportEvent.TeleportCause cause) Teleports this entity to the target Entity.boolean
Entity.teleport
(Location location, PlayerTeleportEvent.TeleportCause cause) Teleports this entity to the given location. -
org.bukkit.event.player中PlayerTeleportEvent.TeleportCause的使用
修饰符和类型方法说明PlayerTeleportEvent.getCause()
获得此次传送的传送理由.返回带有指定名称的该类型的枚举常量。static PlayerTeleportEvent.TeleportCause[]
PlayerTeleportEvent.TeleportCause.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。限定符构造器说明PlayerPortalEvent
(Player player, Location from, Location to, TravelAgent pta, PlayerTeleportEvent.TeleportCause cause) PlayerTeleportEvent
(Player player, Location from, Location to, PlayerTeleportEvent.TeleportCause cause)