枚举的使用
org.bukkit.event.player.PlayerSpawnChangeEvent.Cause
-
org.bukkit.event.player中PlayerSpawnChangeEvent.Cause的使用
修饰符和类型方法说明PlayerSpawnChangeEvent.getCause()
Gets the cause of spawn change.static PlayerSpawnChangeEvent.Cause
返回带有指定名称的该类型的枚举常量。static PlayerSpawnChangeEvent.Cause[]
PlayerSpawnChangeEvent.Cause.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。限定符构造器说明PlayerSpawnChangeEvent
(@NotNull Player player, @Nullable Location newSpawn, boolean forced, @NotNull PlayerSpawnChangeEvent.Cause cause)