Enum LineRenderingStrategy

java.lang.Object
java.lang.Enum<LineRenderingStrategy>
net.megavex.scoreboardlibrary.implementation.commons.LineRenderingStrategy
All Implemented Interfaces:
Serializable, Comparable<LineRenderingStrategy>

public enum LineRenderingStrategy extends Enum<LineRenderingStrategy>
Represents different strategies of rendering sidebar lines.
  • Enum Constant Details

    • LEGACY

      public static final LineRenderingStrategy LEGACY
      For versions older than 1.13, where team properties are stored as strings and have a limit of 16 characters.
    • MODERN

      public static final LineRenderingStrategy MODERN
      For versions 1.13-1.20.2, where team properties are stored as components with no limits.
    • POST_MODERN

      public static final LineRenderingStrategy POST_MODERN
      For versions 1.20.3+, where the score display name can be used instead of team prefix team. Not currently being used.
  • Method Details

    • values

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