Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.nr.rs2.world.content.quests;
- public enum QuestState {
- NOT_STARTED(255 << 10 | 0 << 5 | 0),
- STARTED((255 << 10 | 255 << 5 | 0)),
- COMPLETED((0 << 10 | 255 << 5 | 0)),
- ;
- private int color;
- QuestState(int color){
- this.color = color;
- }
- public static int getColor(int state) {
- for (QuestState quest : values()) {
- if (quest.ordinal() == state) {
- return quest.color;
- }
- }
- return NOT_STARTED.color;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement