枚举的使用
org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason
-
org.bukkit.event.entity中EntityRegainHealthEvent.RegainReason的使用
修饰符和类型方法说明EntityRegainHealthEvent.getRegainReason()
Gets the reason for why the entity is regaining health返回带有指定名称的该类型的枚举常量。static EntityRegainHealthEvent.RegainReason[]
EntityRegainHealthEvent.RegainReason.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。限定符构造器说明EntityRegainHealthEvent
(Entity entity, double amount, EntityRegainHealthEvent.RegainReason regainReason)