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

43 lines
701 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.habbohotel.items;
2018-10-07 00:28:00 +02:00
import com.eu.habbo.Emulator;
2018-07-06 15:30:00 +02:00
public enum PostItColor
{
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
BLUE("9CCEFF"),
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
GREEN("9CFF9C"),
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
PINK("FF9CFF"),
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
YELLOW("FFFF33");
public final String hexColor;
PostItColor(String hexColor)
{
this.hexColor = hexColor;
}
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
public static boolean isCustomColor(String color)
{
for(PostItColor postItColor : PostItColor.values())
{
if(postItColor.hexColor.equalsIgnoreCase(color))
return false;
}
return true;
}
2018-10-07 00:28:00 +02:00
public static PostItColor randomColorNotYellow()
{
return PostItColor.values()[Emulator.getRandom().nextInt(3)];
}
2018-07-06 15:30:00 +02:00
}