Class ChatFormattingUtils
java.lang.Object
net.ixdarklord.coolcatcore.api.utils.ChatFormattingUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.ChatFormatting[]getAssignedResult(int currentValue, int maxValue, ChatFormattingMapping mapping) Returns the chat formatting array based on percentage thresholds.static net.minecraft.ChatFormattinggetProgressColor(int currentValue, int maxValue) Returns a single color based on 3-level progress (red, yellow, green).
-
Method Details
-
getAssignedResult
public static net.minecraft.ChatFormatting[] getAssignedResult(int currentValue, int maxValue, ChatFormattingMapping mapping) Returns the chat formatting array based on percentage thresholds. -
getProgressColor
public static net.minecraft.ChatFormatting getProgressColor(int currentValue, int maxValue) Returns a single color based on 3-level progress (red, yellow, green).
-