Enum Class ActionTrigger

java.lang.Object
java.lang.Enum<ActionTrigger>
de.oliver.fancynpcs.api.actions.ActionTrigger
All Implemented Interfaces:
Serializable, Comparable<ActionTrigger>, Constable

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

    • ANY_CLICK

      public static final ActionTrigger ANY_CLICK
      represents any click interaction by a player.
    • LEFT_CLICK

      public static final ActionTrigger LEFT_CLICK
      represents a left click interaction by a player.
    • RIGHT_CLICK

      public static final ActionTrigger RIGHT_CLICK
      represents a right click interaction by a player.
    • CUSTOM

      public static final ActionTrigger CUSTOM
      represents interactions invoked by the API.
  • Method Details

    • values

      public static ActionTrigger[] 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 ActionTrigger 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
    • getByName

      public static ActionTrigger getByName(String name)
      Gets the ActionTrigger by its name.
      Parameters:
      name - the name of the ActionTrigger
      Returns:
      the ActionTrigger or null if not found