Enum LineRenderingStrategy
java.lang.Object
java.lang.Enum<LineRenderingStrategy>
net.megavex.scoreboardlibrary.implementation.commons.LineRenderingStrategy
- All Implemented Interfaces:
Serializable,Comparable<LineRenderingStrategy>
Represents different strategies of rendering sidebar lines.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor versions older than 1.13, where team properties are stored as strings and have a limit of 16 characters.For versions 1.13-1.20.2, where team properties are stored as components with no limits.For versions 1.20.3+, where the score display name can be used instead of team prefix team. -
Method Summary
Modifier and TypeMethodDescriptionstatic LineRenderingStrategyReturns the enum constant of this type with the specified name.static LineRenderingStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LEGACY
For versions older than 1.13, where team properties are stored as strings and have a limit of 16 characters. -
MODERN
For versions 1.13-1.20.2, where team properties are stored as components with no limits. -
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
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
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 nameNullPointerException- if the argument is null
-