public class Colorset extends Object
Modifier and Type | Method and Description |
---|---|
String |
cleanString(String str)
Removes all color codes from the passed string.
|
String |
getBackground() |
String |
getBotColor() |
Color |
getColor(String key)
Returns a Color object for the specified key.
|
static Colorset |
getColorSet(String name) |
Map<String,String> |
getMap()
Resturns the map that holds the color codes and the color equivalent.
|
static Set<String> |
getSetNames()
Returns the names of all loaded colorsets.
|
String |
getStandardColor() |
static void |
loadAll()
Loads all colorsets to memory.
|
static void |
loadColorSet(String file)
Loads a colorset from a file.
|
String |
strToHtml(String str)
Replaces all color codes by html tags.
|
public Colorset(String file)
public Colorset()
public String getBackground()
public String getStandardColor()
public String getBotColor()
public Color getColor(String key)
key
- The "Colorcode".public Map<String,String> getMap()
public static void loadColorSet(String file)
file
- The colorsets name.public static void loadAll()
public static Set<String> getSetNames()
public String cleanString(String str)
str
-