RuneHive-Game
Loading...
Searching...
No Matches
CompostType.java
Go to the documentation of this file.
1
package
com.runehive.content.skill.impl.farming;
2
3
public
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
}
com.runehive.content.skill.impl.farming.CompostType.ULTRACOMPOST
ULTRACOMPOST
Definition
CompostType.java:7
com.runehive.content.skill.impl.farming.CompostType.getProtection
double getProtection()
Definition
CompostType.java:21
com.runehive.content.skill.impl.farming.CompostType.SUPERCOMPOST
SUPERCOMPOST
Definition
CompostType.java:6
com.runehive.content.skill.impl.farming.CompostType.protection
final double protection
Definition
CompostType.java:11
com.runehive.content.skill.impl.farming.CompostType.getExp
double getExp()
Definition
CompostType.java:25
com.runehive.content.skill.impl.farming.CompostType.COMPOST
COMPOST
Definition
CompostType.java:5
com.runehive.content.skill.impl.farming.CompostType.item
final int item
Definition
CompostType.java:9
com.runehive.content.skill.impl.farming.CompostType.produceIncrease
final int produceIncrease
Definition
CompostType.java:10
com.runehive.content.skill.impl.farming.CompostType.CompostType
CompostType(int item, int produceIncrease, double protection, double exp)
Definition
CompostType.java:14
com.runehive.content.skill.impl.farming.CompostType.forItem
static CompostType forItem(int item)
Definition
CompostType.java:29
com.runehive.content.skill.impl.farming.CompostType.exp
final double exp
Definition
CompostType.java:12
com.runehive.content.skill.impl.farming.CompostType.NONE
NONE
Definition
CompostType.java:4
com.runehive.content.skill.impl.farming.CompostType.produceIncrease
int produceIncrease()
Definition
CompostType.java:38