枚举的使用
org.bukkit.event.hanging.HangingBreakEvent.RemoveCause
-
org.bukkit.event.hanging中HangingBreakEvent.RemoveCause的使用
修饰符和类型方法说明HangingBreakEvent.getCause()
获取这个悬挂实体被移除的原因.返回带有指定名称的该类型的枚举常量。static HangingBreakEvent.RemoveCause[]
HangingBreakEvent.RemoveCause.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。限定符构造器说明HangingBreakByEntityEvent
(@NotNull Hanging hanging, @Nullable Entity remover, HangingBreakEvent.RemoveCause cause) HangingBreakEvent
(@NotNull Hanging hanging, HangingBreakEvent.RemoveCause cause)