枚举的使用
org.bukkit.event.entity.EntityExhaustionEvent.ExhaustionReason
-
org.bukkit.event.entity中EntityExhaustionEvent.ExhaustionReason的使用
修饰符和类型方法说明EntityExhaustionEvent.getExhaustionReason()
Gets theEntityExhaustionEvent.ExhaustionReason
for this event返回带有指定名称的该类型的枚举常量。EntityExhaustionEvent.ExhaustionReason.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。限定符构造器说明EntityExhaustionEvent
(@NotNull HumanEntity who, @NotNull EntityExhaustionEvent.ExhaustionReason exhaustionReason, float exhaustion)