Class ChatFormattingUtils

java.lang.Object
net.ixdarklord.coolcatcore.api.utils.ChatFormattingUtils

public final class ChatFormattingUtils extends Object
  • 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).