Enum Class TaskType

java.lang.Object
java.lang.Enum<TaskType>
fr.pacdu.pacpackquests.TaskType
All Implemented Interfaces:
Serializable, Comparable<TaskType>, Constable

public enum TaskType extends Enum<TaskType>
Defines the different types of tasks a player can complete in a quest. These types determine how progress is tracked (e.g., inventory tracking vs event listening).
  • Enum Constant Details

    • MINE_BLOCK

      public static final TaskType MINE_BLOCK
    • KILL_MOB

      public static final TaskType KILL_MOB
    • CRAFT_ITEM

      public static final TaskType CRAFT_ITEM
    • EXPLORE_BIOME

      public static final TaskType EXPLORE_BIOME
    • EXPLORE_STRUCTURE

      public static final TaskType EXPLORE_STRUCTURE
    • EXPLORE_DIMENSION

      public static final TaskType EXPLORE_DIMENSION
    • OBTAIN_ITEM

      public static final TaskType OBTAIN_ITEM
    • OPEN_LOOT_CHEST

      public static final TaskType OPEN_LOOT_CHEST
  • Method Details

    • values

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

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

      public static boolean isValid(String name)
    • getRegistryType

      public static RegistryType getRegistryType(TaskType type)