Enum Class HookPreCheckResult

java.lang.Object
java.lang.Enum<HookPreCheckResult>
nl.pim16aap2.animatedarchitecture.spigot.util.hooks.HookPreCheckResult
All Implemented Interfaces:
Serializable, Comparable<HookPreCheckResult>, Constable

public enum HookPreCheckResult extends Enum<HookPreCheckResult>
Represents the result of a protection hook check.
  • Enum Constant Details

    • DENY

      public static final HookPreCheckResult DENY
      The check denied the action.
    • ALLOW

      public static final HookPreCheckResult ALLOW
      The check allowed the action. This does not mean that the action will be allowed, as other checks may still deny the action.
    • BYPASS

      public static final HookPreCheckResult BYPASS
      The check is bypassed. This means that the check is not run at all.
  • Method Details

    • values

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