Enum ScoreboardType

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

public enum ScoreboardType extends Enum<ScoreboardType>
The occasion used by ScoreboardHandler to determinate what exactly shall be shown
  • Enum Constant Details

  • Method Details

    • values

      public static ScoreboardType[] 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 ScoreboardType 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
    • getByName

      @Nullable public static @Nullable ScoreboardType getByName(String name)
      Looks through all ScoreboardTypes and checks which team fits the best to the given name.

      Ignores upper and lowercase.

      Parameters:
      name - The name of the ScoreboardType it should look up for
      Returns:
      The type that matches the name. Returns null if it hasn't found any