-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slightly refactor sidebar line logic, fixes several instances of usel…
…ess packets being sent & a rare NPE
- Loading branch information
Showing
15 changed files
with
204 additions
and
148 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...main/java/net/megavex/scoreboardlibrary/implementation/commons/LineRenderingStrategy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.megavex.scoreboardlibrary.implementation.commons; | ||
|
||
/** | ||
* Represents different strategies of rendering sidebar lines. | ||
*/ | ||
public enum LineRenderingStrategy { | ||
/** | ||
* For versions older than 1.13, where team properties are stored as strings and have a limit of 16 characters. | ||
*/ | ||
LEGACY, | ||
/** | ||
* For versions 1.13-1.20.2, where team properties are stored as components with no limits. | ||
*/ | ||
MODERN, | ||
/** | ||
* For versions 1.20.3+, where the score display name can be used instead of team prefix team. | ||
* Not currently being used. | ||
*/ | ||
POST_MODERN | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.