Class ColorPalette
java.lang.Object
io.github.dexrnzacattack.rrdiscordbridge.config.ColorPalette
- All Implemented Interfaces:
IConfig
Color palette config
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Path
The color used for thePlayer has made the advancement {advancement}
event messageThe color used for thePlayer has completed the challenge {challenge}
event messageThe color used for thePlayer died
event messageThe color used for thePlayer joined the game for the first time.
event messageThe color used for thePlayer joined the game.
event messageThe color used for thePlayer was kicked.
event messageThe color used for thePlayer left the game.
event messageThe color used for theServer started!
event messageThe color used for theServer stopped!
event message -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_PATH
-
serverStarted
The color used for theServer started!
event message -
serverStopped
The color used for theServer stopped!
event message -
playerJoin
The color used for thePlayer joined the game.
event message -
playerFirstJoin
The color used for thePlayer joined the game for the first time.
event message -
playerLeave
The color used for thePlayer left the game.
event message -
playerKick
The color used for thePlayer was kicked.
event message -
playerDeath
The color used for thePlayer died
event message -
playerAchievement
The color used for thePlayer has made the advancement {advancement}
event message -
playerChallenge
The color used for thePlayer has completed the challenge {challenge}
event message
-
-
Constructor Details
-
ColorPalette
The color palette config constructor- Parameters:
path
- The path to the color palette file
-
-
Method Details
-
load
Description copied from interface:IConfig
Loads the config- Specified by:
load
in interfaceIConfig
- Returns:
- itself after loading
- Throws:
IOException
- This can fail if the file could not be read correctly
-
upgrade
Description copied from interface:IConfig
Upgrades the config from an earlier version -
save
public void save()Description copied from interface:IConfig
Writes the config -
create
public void create()Description copied from interface:IConfig
Creates the config file and directories
-