Package net.blueva.arcade.api.module
Enum ModuleType
- All Implemented Interfaces:
Serializable,Comparable<ModuleType>
Declares the intended module gameplay duration and mode.
Module types categorize games by their expected duration and complexity. This classification helps with scheduling, rewards, and player expectations.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleTypefromString(String raw) Parses a module type from a string.static ModuleTypeReturns the enum constant of this type with the specified name.static ModuleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MINIGAME
A standard minigame with typical duration of 2-10 minutes.Minigames are full-featured games with complete mechanics, multiple rounds, and comprehensive gameplay. Examples include SkyWars, BedWars, TNT Run, etc.
-
MICROGAME
A quick microgame with duration under 2 minutes.Microgames are fast-paced, simple games designed for rapid play sessions. They typically have simplified mechanics and shorter rounds. Examples include quick parkour challenges or fast reaction games.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Parses a module type from a string.- Parameters:
raw- the string to parse (case-insensitive)- Returns:
- the matching ModuleType, or null if not found
-