Enum Class GameEndCause

java.lang.Object
java.lang.Enum<GameEndCause>
uk.radialbog9.spigot.manhunt.game.GameEndCause
All Implemented Interfaces:
Serializable, Comparable<GameEndCause>, Constable

public enum GameEndCause extends Enum<GameEndCause>
Game Win Causes
  • Enum Constant Details

    • RUNNERS_ALL_DIE

      public static final GameEndCause RUNNERS_ALL_DIE
      When the runners are all dead
    • RUNNERS_KILL_DRAGON

      public static final GameEndCause RUNNERS_KILL_DRAGON
      When the runners kill the Ender Dragon
    • ALL_HUNTERS_LEAVE

      public static final GameEndCause ALL_HUNTERS_LEAVE
      When all hunters have left the server
    • ALL_RUNNERS_LEAVE

      public static final GameEndCause ALL_RUNNERS_LEAVE
      When all runners have left the server
    • TIME_UP

      public static final GameEndCause TIME_UP
      When the game timer expires (certain gamemodes)
    • ENDED_PREMATURELY

      public static final GameEndCause ENDED_PREMATURELY
      When the game is stopped with a command
  • Method Details

    • values

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