Enum Class TrackAction

java.lang.Object
java.lang.Enum<TrackAction>
net.luckperms.api.event.user.track.TrackAction
All Implemented Interfaces:
Serializable, Comparable<TrackAction>, java.lang.constant.Constable

public enum TrackAction extends Enum<TrackAction>
Represents the type of action performed in a UserTrackEvent
  • Enum Constant Details

    • PROMOTION

      public static final TrackAction PROMOTION
      The user was promoted up a track
    • DEMOTION

      public static final TrackAction DEMOTION
      The user was demoted down a track
  • Method Details

    • values

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