Enum Class FlagCategory

java.lang.Object
java.lang.Enum<FlagCategory>
de.z0rdak.yawp.core.flag.FlagCategory
All Implemented Interfaces:
Serializable, Comparable<FlagCategory>, Constable

public enum FlagCategory extends Enum<FlagCategory>
  • Enum Constant Details

    • PLAYER

      public static final FlagCategory PLAYER
      Flags in this category involve preventing a certain event for the player. E.g. gaining XP/levels without reporting it to the player
    • BENEFICIAL

      public static final FlagCategory BENEFICIAL
    • PLAYER_PREVENTION

      public static final FlagCategory PLAYER_PREVENTION
      Flags in this category involve reporting back the prevented action to the player. E.g. break-blocks
    • BLOCK

      public static final FlagCategory BLOCK
      Flags related to actions directly targeting blocks
    • ENTITY

      public static final FlagCategory ENTITY
      Flags related to actions directly targeting entities
    • ENVIRONMENT

      public static final FlagCategory ENVIRONMENT
    • PROTECTION

      public static final FlagCategory PROTECTION
  • Field Details

    • name

      public final String name
  • Method Details

    • values

      public static FlagCategory[] 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 FlagCategory 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
    • from

      public static FlagCategory from(String category) throws IllegalArgumentException
      Throws:
      IllegalArgumentException