Enum Class CooldownUtils.CooldownType
java.lang.Object
java.lang.Enum<CooldownUtils.CooldownType>
ua.mcchickenstudio.opencreative.utils.CooldownUtils.CooldownType
- All Implemented Interfaces:
Serializable, Comparable<CooldownUtils.CooldownType>, Constable
- Enclosing class:
CooldownUtils
Represents type of cooldown.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWorld Advertisement cooldown.Cooldown of duplicating coding blocks with manipulator.Cooldown of sending message in global chat.Cooldown of generic commands.Cooldown of creating or installing module.Cooldown of requesting code generation with /env make.Cooldown of sending message in world chat.Cooldown of downloading world with /world download. -
Method Summary
Modifier and TypeMethodDescriptionstatic CooldownUtils.CooldownTypeReturns the enum constant of this class with the specified name.static CooldownUtils.CooldownType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERIC_COMMAND
Cooldown of generic commands. -
ADVERTISEMENT_COMMAND
World Advertisement cooldown. -
CREATIVE_CHAT
Cooldown of sending message in global chat. -
WORLD_CHAT
Cooldown of sending message in world chat. -
MODULE_MANIPULATION
Cooldown of creating or installing module. -
BLOCKS_DUPLICATION
Cooldown of duplicating coding blocks with manipulator. -
WORLD_DOWNLOAD
Cooldown of downloading world with /world download. -
PROMPTER_REQUEST
Cooldown of requesting code generation with /env make.
-
-
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
-