java.lang.Object
io.github.dexrnzacattack.rrdiscordbridge.config.ColorPalette
All Implemented Interfaces:
IConfig

public class ColorPalette extends Object implements IConfig
Color palette config
  • Field Details

    • DEFAULT_PATH

      public static final Path DEFAULT_PATH
    • serverStarted

      public Color serverStarted
      The color used for the Server started! event message
    • serverStopped

      public Color serverStopped
      The color used for the Server stopped! event message
    • playerJoin

      public Color playerJoin
      The color used for the Player joined the game. event message
    • playerFirstJoin

      public Color playerFirstJoin
      The color used for the Player joined the game for the first time. event message
    • playerLeave

      public Color playerLeave
      The color used for the Player left the game. event message
    • playerKick

      public Color playerKick
      The color used for the Player was kicked. event message
    • playerDeath

      public Color playerDeath
      The color used for the Player died event message
    • playerAchievement

      public Color playerAchievement
      The color used for the Player has made the advancement {advancement} event message
    • playerChallenge

      public Color playerChallenge
      The color used for the Player has completed the challenge {challenge} event message
  • Constructor Details

    • ColorPalette

      public ColorPalette(Path path)
      The color palette config constructor
      Parameters:
      path - The path to the color palette file
  • Method Details

    • load

      public ColorPalette load() throws IOException
      Description copied from interface: IConfig
      Loads the config
      Specified by:
      load in interface IConfig
      Returns:
      itself after loading
      Throws:
      IOException - This can fail if the file could not be read correctly
    • upgrade

      public ColorPalette upgrade()
      Description copied from interface: IConfig
      Upgrades the config from an earlier version
      Specified by:
      upgrade in interface IConfig
      Returns:
      itself after upgrading
    • save

      public void save()
      Description copied from interface: IConfig
      Writes the config
      Specified by:
      save in interface IConfig
    • create

      public void create()
      Description copied from interface: IConfig
      Creates the config file and directories
      Specified by:
      create in interface IConfig