Enum Class ScheduleType
- All Implemented Interfaces:
Serializable,Comparable<ScheduleType>,Constable
调度类型枚举 - 定义任务使用的调度器类型
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Berry_so
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduleTypeReturns the enum constant of this class with the specified name.static ScheduleType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
自动选择:async=true 使用 MagstarScheduler,否则使用 Bukkit -
BUKKIT
强制使用 Bukkit 调度器(兼容模式) -
MAGSTAR
强制使用 MagstarScheduler(推荐)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-