Class ChatSettings

java.lang.Object
dev.ua.theroer.magicutils.config.logger.ChatSettings

public class ChatSettings extends Object
Chat formatting settings. Configuration class for managing chat message formatting options including automatic color generation and gradient settings.
  • Constructor Details

    • ChatSettings

      public ChatSettings()
      Default constructor for ChatSettings.
  • Method Details

    • getGradient

      public List<String> getGradient()
      Gradient colors applied to chat messages when a level-specific palette is not provided.
      Returns:
      defensive copy of the configured gradient colors
    • setGradient

      public void setGradient(List<String> gradient)
      Replaces the chat gradient palette.
      Parameters:
      gradient - list of hex colors to apply; null resets to an empty list
    • getColors

      public ColorSettings getColors()
      Color palette per log level for chat output.
      Returns:
      deep copy of the color settings
    • setColors

      public void setColors(ColorSettings colors)
      Sets chat color palettes for each log level.
      Parameters:
      colors - color configuration to clone; null resets to defaults