RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
CompostType.java
1package com.osroyale.content.skill.impl.farming;
2
26
27public enum CompostType {
28 NONE(-1, 100, 1.00, 0),
29 COMPOST(6032, 110, 0.60, 18),
30 SUPERCOMPOST(6034, 115, 0.30, 26),
31 ULTRACOMPOST(21483, 120, 0.10, 32);
32
33 private final int item;
34 private final int produceIncrease;
35 private final double protection;
36 private final double exp;
37
38 CompostType(int item, int produceIncrease, double protection, double exp) {
39 this.item = item;
40 this.produceIncrease = produceIncrease;
41 this.protection = protection;
42 this.exp = exp;
43 }
44
45 public double getProtection() {
46 return protection;
47 }
48
49 public double getExp() {
50 return exp;
51 }
52
53 public static CompostType forItem(int item) {
54 for (CompostType type : values()) {
55 if (type.item == item) {
56 return type;
57 }
58 }
59 return NONE;
60 }
61
62 public int produceIncrease() {
63 return produceIncrease;
64 }
65
66}