Enum Class FlagTag

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

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

    • PLAYER

      public static final FlagTag 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 FlagTag BENEFICIAL
    • PLAYER_PREVENTION

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

      public static final FlagTag BLOCK
      Flags related to actions directly targeting blocks
    • ITEM

      public static final FlagTag ITEM
    • ENTITY

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

      public static final FlagTag ENVIRONMENT
    • HIGH_FREQUENCY

      public static final FlagTag HIGH_FREQUENCY
    • PROTECTION

      public static final FlagTag PROTECTION
  • Field Details

    • name

      public final String name
  • Method Details

    • values

      public static FlagTag[] 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 FlagTag 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 FlagTag from(String category) throws IllegalArgumentException
      Throws:
      IllegalArgumentException