枚举的使用
org.bukkit.plugin.ServicePriority
-
org.bukkit.plugin中ServicePriority的使用
修饰符和类型方法说明RegisteredServiceProvider.getPriority()
static ServicePriority
返回带有指定名称的该类型的枚举常量。static ServicePriority[]
ServicePriority.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明<T> void
ServicesManager.register
(Class<T> service, T provider, Plugin plugin, ServicePriority priority) Register a provider of a service.<T> void
SimpleServicesManager.register
(Class<T> service, T provider, Plugin plugin, ServicePriority priority) Register a provider of a service.限定符构造器说明RegisteredServiceProvider
(Class<T> service, T provider, ServicePriority priority, Plugin plugin)