RuneHive-Game
Loading...
Searching...
No Matches
EmblemData.java
Go to the documentation of this file.
1package com.runehive.content;
2
3/**
4 * Created by Daniel on 2018-02-06.
5 */
6public enum EmblemData {
7 TIER_1(12746, 50),
8 TIER_2(12748, 75),
9 TIER_3(12749, 100),
10 TIER_4(12750, 150),
11 TIER_5(12751, 225),
12 TIER_6(12752, 300),
13 TIER_7(12753, 400),
14 TIER_8(12754, 525),
15 TIER_9(12755, 750),
16 TIER_10(12756, 1000),
17 ANCIENT(21807, 1);
18
19 public final int item;
20 public final int bloodMoney;
21
23 this.item = item;
24 this.bloodMoney = bloodMoney;
25 }
26
27 public static EmblemData forId(int id) {
28 for (EmblemData emblem : values()) {
29 if (emblem.item == id)
30 return emblem;
31 }
32 return null;
33 }
34
35 public int getNext() {
36 if (this == TIER_10 || this == ANCIENT)
37 return -1;
38 return values()[this.ordinal() + 1].item;
39 }
40}
EmblemData(int item, int bloodMoney)
static EmblemData forId(int id)