Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/items/PostItColor.java

48 lines
809 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.habbohotel.items;
public enum PostItColor
{
/**
* Blue!
*/
BLUE("9CCEFF"),
/**
* Green!
*/
GREEN("9CFF9C"),
/**
* Pink! (Or purple :P)
*/
PINK("FF9CFF"),
/**
* Yellow
*/
YELLOW("FFFF33");
public final String hexColor;
PostItColor(String hexColor)
{
this.hexColor = hexColor;
}
/**
* If the color is a custom color.
* @param color The color to check.
* @return True if the color is a custom color.
*/
public static boolean isCustomColor(String color)
{
for(PostItColor postItColor : PostItColor.values())
{
if(postItColor.hexColor.equalsIgnoreCase(color))
return false;
}
return true;
}
}