RuneHive-Game
Loading...
Searching...
No Matches
CompostType.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.farming;
2
3public enum CompostType {
4 NONE(-1, 100, 1.00, 0),
5 COMPOST(6032, 110, 0.60, 18),
6 SUPERCOMPOST(6034, 115, 0.30, 26),
7 ULTRACOMPOST(21483, 120, 0.10, 32);
8
9 private final int item;
10 private final int produceIncrease;
11 private final double protection;
12 private final double exp;
13
14 CompostType(int item, int produceIncrease, double protection, double exp) {
15 this.item = item;
16 this.produceIncrease = produceIncrease;
17 this.protection = protection;
18 this.exp = exp;
19 }
20
21 public double getProtection() {
22 return protection;
23 }
24
25 public double getExp() {
26 return exp;
27 }
28
29 public static CompostType forItem(int item) {
30 for (CompostType type : values()) {
31 if (type.item == item) {
32 return type;
33 }
34 }
35 return NONE;
36 }
37
38 public int produceIncrease() {
39 return produceIncrease;
40 }
41
42}
CompostType(int item, int produceIncrease, double protection, double exp)