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

38 lines
683 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;
2019-05-26 20:14:53 +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;
2019-05-26 20:14:53 +02:00
PostItColor(String hexColor) {
2018-07-06 15:30:00 +02:00
this.hexColor = hexColor;
}
2018-07-08 23:32:00 +02:00
2019-05-26 20:14:53 +02:00
public static boolean isCustomColor(String color) {
for (PostItColor postItColor : PostItColor.values()) {
if (postItColor.hexColor.equalsIgnoreCase(color))
2018-07-06 15:30:00 +02:00
return false;
}
return true;
}
2018-10-07 00:28:00 +02:00
2019-05-26 20:14:53 +02:00
public static PostItColor randomColorNotYellow() {
2018-10-07 00:28:00 +02:00
return PostItColor.values()[Emulator.getRandom().nextInt(3)];
}
2018-07-06 15:30:00 +02:00
}