Enum Class CommonFlags

java.lang.Object
java.lang.Enum<CommonFlags>
io.github.lijinhong11.protector.api.flag.CommonFlags
All Implemented Interfaces:
Serializable, Comparable<CommonFlags>, Constable

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

  • Method Details

    • values

      public static CommonFlags[] 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 CommonFlags 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
    • fromResidence

      public static CommonFlags fromResidence(String flag)
    • fromDominion

      public static CommonFlags fromDominion(String flag)
    • fromRedProtect

      public static CommonFlags fromRedProtect(String flag)
    • fromWorldGuard

      public static CommonFlags fromWorldGuard(String flag)
    • fromPlotSquared

      public static CommonFlags fromPlotSquared(String flag)
    • fromBentoBox

      public static CommonFlags fromBentoBox(String flag)
    • fromHuskClaims

      public static CommonFlags fromHuskClaims(String flag)
    • fromAny

      public static CommonFlags fromAny(String flag)
    • getForResidence

      public String getForResidence()
    • getForDominion

      @Nullable public @Nullable String getForDominion()
    • getForRedProtect

      @Nullable public @Nullable String getForRedProtect()
    • getForWorldGuard

      @Nullable public @Nullable String getForWorldGuard()
    • getForPlotSquared

      @Nullable public @Nullable String getForPlotSquared()
    • getForBentoBox

      @Nullable public @Nullable String getForBentoBox()
    • getForHuskClaims

      @Nullable public @Nullable String getForHuskClaims()