Enum ScoreboardUpdateCause

java.lang.Object
java.lang.Enum<ScoreboardUpdateCause>
de.marcely.bedwars.api.game.scoreboard.ScoreboardUpdateCause
All Implemented Interfaces:
Serializable, Comparable<ScoreboardUpdateCause>, java.lang.constant.Constable

public enum ScoreboardUpdateCause extends Enum<ScoreboardUpdateCause>
What part of the scoreboard shall be updated
  • Enum Constant Details

    • COMPLETE_REFRESH

      public static final ScoreboardUpdateCause COMPLETE_REFRESH
      Complete update. data is always null
    • TICK

      public static final ScoreboardUpdateCause TICK
      Gets called every second when the state of the arena is ArenaStatus.RUNNING or ArenaStatus.LOBBY. MBedwars will naturally call it in a separate thread, it's though not promised that it'll be done at all times. data is always null
    • PLAYER_ADD

      public static final ScoreboardUpdateCause PLAYER_ADD
      Player has joined the arena. data is the involved Player
    • PLAYER_REMOVE

      public static final ScoreboardUpdateCause PLAYER_REMOVE
      Player has left the arena. data is the involved Player
    • PLAYER_STATS_UPDATE

      public static final ScoreboardUpdateCause PLAYER_STATS_UPDATE
      Stats of a player have changed. data is the PlayerStats (never the game stats!) of the player
    • PLAYER_TEAM_CHANGE

      public static final ScoreboardUpdateCause PLAYER_TEAM_CHANGE
      Player has changed his team. data is the involved Player
    • BED_DESTROY

      public static final ScoreboardUpdateCause BED_DESTROY
      Bed of a team has been destroyed. data is the involved Team
    • BED_REVIVE

      public static final ScoreboardUpdateCause BED_REVIVE
      Bed of a team has been revived (by e.g. a plugin). data is the involved Team
    • PAPI_PLACEHOLDERS

      public static final ScoreboardUpdateCause PAPI_PLACEHOLDERS
      Update PlaceholderAPI placeholders
  • Method Details

    • values

      public static ScoreboardUpdateCause[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ScoreboardUpdateCause valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null