Enum Class WinReason

java.lang.Object
java.lang.Enum<WinReason>
fr.revived.morpheus.game.api.trigger.win.WinReason
All Implemented Interfaces:
Serializable, Comparable<WinReason>, Constable

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

    • BED_DESTROYED

      public static final WinReason BED_DESTROYED
    • LAST_TEAM_STANDING

      public static final WinReason LAST_TEAM_STANDING
    • LAST_PLAYER_STANDING

      public static final WinReason LAST_PLAYER_STANDING
    • TIME_UP

      public static final WinReason TIME_UP
    • SCORE_LIMIT

      public static final WinReason SCORE_LIMIT
    • CUSTOM

      public static final WinReason CUSTOM
  • Method Details

    • values

      public static WinReason[] 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 WinReason 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
    • getDisplayName

      public String getDisplayName()