Enum Class Tracker.CloseReason

java.lang.Object
java.lang.Enum<Tracker.CloseReason>
kr.toxicity.model.api.tracker.Tracker.CloseReason
All Implemented Interfaces:
Serializable, Comparable<Tracker.CloseReason>, Constable
Enclosing class:
Tracker

public static enum Tracker.CloseReason extends Enum<Tracker.CloseReason>
Reason for closing a tracker.
Since:
1.15.2
  • Enum Constant Details

    • REMOVE

      public static final Tracker.CloseReason REMOVE
      The tracker was manually removed.
      Since:
      1.15.2
    • PLUGIN_DISABLE

      public static final Tracker.CloseReason PLUGIN_DISABLE
      The plugin is being disabled.
      Since:
      1.15.2
    • DESPAWN

      public static final Tracker.CloseReason DESPAWN
      The entity or tracker was despawned.
      Since:
      1.15.2
  • Method Details

    • values

      public static Tracker.CloseReason[] 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 Tracker.CloseReason 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
    • shouldBeSave

      public boolean shouldBeSave()
      Checks if the tracker state should be saved.
      Returns:
      true if it should be saved
      Since:
      1.15.2