Enum ModuleType

java.lang.Object
java.lang.Enum<ModuleType>
net.blueva.arcade.api.module.ModuleType
All Implemented Interfaces:
Serializable, Comparable<ModuleType>

public enum ModuleType extends Enum<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 Details

    • MINIGAME

      public static final ModuleType 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

      public static final ModuleType 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

      public static ModuleType[] 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

      public static ModuleType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromString

      public static ModuleType fromString(String raw)
      Parses a module type from a string.
      Parameters:
      raw - the string to parse (case-insensitive)
      Returns:
      the matching ModuleType, or null if not found