Package org.leralix.lib.utils
Class ProgressBar
java.lang.Object
org.leralix.lib.utils.ProgressBar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createProgressBar
(int current, int max, int length, net.md_5.bungee.api.ChatColor completedColor, net.md_5.bungee.api.ChatColor remainingColor) Génère une barre de progression bicolore.
-
Constructor Details
-
ProgressBar
public ProgressBar()
-
-
Method Details
-
createProgressBar
public static String createProgressBar(int current, int max, int length, net.md_5.bungee.api.ChatColor completedColor, net.md_5.bungee.api.ChatColor remainingColor) Génère une barre de progression bicolore.- Parameters:
current
- La progression actuelle.max
- La valeur maximale de la progression.length
- Longueur totale de la barre.completedColor
- Couleur pour la partie complétée (format Minecraft : §a, §b, etc.).remainingColor
- Couleur pour la partie restante.- Returns:
- Une chaîne représentant la barre de progression.
-