Enum Class WGFlag

java.lang.Object
java.lang.Enum<WGFlag>
nl.mtvehicles.core.infrastructure.enums.WGFlag
All Implemented Interfaces:
Serializable, Comparable<WGFlag>, Constable

public enum WGFlag extends Enum<WGFlag>
Custom WorldGuard flags used for more features (if WorldGuard is hooked)
  • Enum Constant Details

    • GAS_STATION

      public static final WGFlag GAS_STATION
    • PLACE

      public static final WGFlag PLACE
    • ENTER

      public static final WGFlag ENTER
    • PICKUP

      public static final WGFlag PICKUP
    • USE_CAR

      public static final WGFlag USE_CAR
    • USE_HOVER

      public static final WGFlag USE_HOVER
    • USE_TANK

      public static final WGFlag USE_TANK
    • USE_HELICOPTER

      public static final WGFlag USE_HELICOPTER
    • USE_AIRPLANE

      public static final WGFlag USE_AIRPLANE
    • USE_BOAT

      public static final WGFlag USE_BOAT
  • Method Details

    • values

      public static WGFlag[] 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 WGFlag 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
    • getKey

      public String getKey()
      Get the custom flag's key (e.g. "mtv-place")
    • getFlagList

      public static List<WGFlag> getFlagList()
      Get list of all custom flags (as enums)