枚举的使用
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause
-
org.bukkit.entity中PlayerTeleportEvent.TeleportCause的使用
修饰符和类型方法说明boolean
Entity.teleport
(@NotNull Entity destination, @NotNull PlayerTeleportEvent.TeleportCause cause) 将此实体传送到目标实体.boolean
Entity.teleport
(@NotNull Location location, @NotNull PlayerTeleportEvent.TeleportCause cause) 将此实体传送到给定位置. -
org.bukkit.event.player中PlayerTeleportEvent.TeleportCause的使用
修饰符和类型方法说明PlayerTeleportEvent.getCause()
获得此次传送的传送理由.返回带有指定名称的该类型的枚举常量。static PlayerTeleportEvent.TeleportCause[]
PlayerTeleportEvent.TeleportCause.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。限定符构造器说明PlayerPortalEvent
(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause) PlayerPortalEvent
(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause, int getSearchRadius, boolean canCreatePortal, int creationRadius) PlayerTeleportEvent
(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause)