Enum Class CloseReason

java.lang.Object
java.lang.Enum<CloseReason>
com.ultikits.ultitools.ui.CloseReason
All Implemented Interfaces:
Serializable, Comparable<CloseReason>, Constable

public enum CloseReason extends Enum<CloseReason>
Why an intent ended without an answer. Constants may be added in a 7.x minor release.
  • Enum Constant Details

    • PLAYER

      public static final CloseReason PLAYER
      The player explicitly closed a chest or chose a Dialog's cancel/exit action.
    • INTERRUPTED

      public static final CloseReason INTERRUPTED
      A chest was closed by the game or another plugin, or its first open/title reopen failed. For Dialogs: death, world change, or an uncancelled inventory opening interrupted the screen.
    • DISCONNECTED

      public static final CloseReason DISCONNECTED
      The player left the server; this includes a chest CANT_USE followed by a quit in the same tick.
    • REPLACED

      public static final CloseReason REPLACED
      Another intent was shown to the same player.
    • TIMED_OUT

      public static final CloseReason TIMED_OUT
    • CLOSED_BY_CODE

      public static final CloseReason CLOSED_BY_CODE
      UiSession.close() was called.
    • OWNER_UNLOADED

      public static final CloseReason OWNER_UNLOADED
      The module that showed it was unloaded.
    • UNSUPPORTED

      public static final CloseReason UNSUPPORTED
      No backend can show this intent to this player.
  • Constructor Details

    • CloseReason

      private CloseReason()
  • Method Details

    • values

      public static 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 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