Enum Class BarStyle

java.lang.Object
java.lang.Enum<BarStyle>
me.neznamy.tab.api.bossbar.BarStyle
All Implemented Interfaces:
Serializable, Comparable<BarStyle>, Constable

public enum BarStyle extends Enum<BarStyle>
An enum representing all available BossBar styles. Calling ordinal() will return style's network ID. Style names are equal to NMS names.
  • Enum Constant Details

    • PROGRESS

      public static final BarStyle PROGRESS
    • NOTCHED_6

      public static final BarStyle NOTCHED_6
    • NOTCHED_10

      public static final BarStyle NOTCHED_10
    • NOTCHED_12

      public static final BarStyle NOTCHED_12
    • NOTCHED_20

      public static final BarStyle NOTCHED_20
  • Method Details

    • values

      public static BarStyle[] 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 BarStyle 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
    • getBukkitName

      public String getBukkitName()
      Returns name of this style in Bukkit API
      Returns:
      name of this style in Bukkit API