RuneHive-Game
Loading...
Searching...
No Matches
OreData.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.mining;
2
3/**
4 * Holds all the ore data.
5 *
6 * @author Daniel
7 */
8public enum OreData {
9 CLAY(434, 1, 5, 11391, 15, 741_600, 5, 0.3, new int[]{11363, 11362, 7487}, -1),
10 COPPER(436, 1, 17.5, 11391, 15, 741_600, 5, 0.5, new int[]{10943, 11161, 7453}, 3.6),
11 TIN(438, 1, 17.5, 11391, 15, 741_600, 5, 0.5, new int[]{11360,11361, 7486}, 3.6),
12 IRON(440, 15, 35, 11391, 20, 741_600, 8, 0.2, new int[]{11365,11364, 7455}, 6.25),
13 SILVER(442, 20, 40, 11391, 25, 741_600, 8, 0.2, new int[]{11368,11369, 7490}, 7.8),
14 COAL(453, 30, 50, 11391, 25, 290_640, 9, 0.2, new int[]{11367, 11366, 7489}, -1),
15 GOLD(444, 40, 65, 11391, 30, 296_640, 7, 0.15, new int[]{11371, 11370, 7458}, 9),
16 MITHRIL(447, 55, 80, 11391, 50, 148_320, 9, 0.05, new int[]{11373, 11372, 7459}, 12),
17 ADAMANTITE(449, 70, 95, 11391, 75, 59_328, 11, 0.03, new int[]{11375, 11374, 7460}, 18.75),
18 RUNITE(451, 85, 125, 11391, 100, 42_337, 13, 0.02, new int[]{11377, 11376}, 25),
19 RUNE_ESSENCE(7936, 1, 25, -1, 20, 326_780, Integer.MAX_VALUE, 0.1, new int[]{34773,7471}, -1),
20 GEM_ROCK(-1, 40, 85, 11391, 75, 326_780, 2, 0.2, new int[] {11381, 11380, 9030}, -1),
21 AMETHYST(21347, 92, 240, 11393, 75, 326_780, 10, 0.2, new int[] {11389, 11388}, -1),
22 GEM_ROCK_I(-1, 40, 65, 11391, 135, 326_780, 2, 0.3, new int[] {11380, 11381, 7464}, -1),
23 ASHES(21622, 22, 125, 30986, 100, 42_337, 13, 0.02, new int[]{30985}, -1),
24
25 //30985 ash pile
26 ;
27
28 /** The ore this node contains. */
29 public final int ore;
30
31 /** The minimum level to mine this node. */
32 public final int level;
33
34 /** The experience. */
35 public final double experience;
36
37 /** The node replacement. */
38 public final int replacement;
39
40 /** The node respawn timer. */
41 public final int respawn;
42
43 /** The pet chance. */
44 public final int pet;
45
46 /** The amount of ores that this ore can give. */
47 public final int oreCount;
48
49 /** The success rate for the ore data. */
50 public final double success;
51
52 /** The object identification of this node. */
53 public final int[] objects;
54
55 public double infernalExperience;
56
57 /** Creates the node. */
58 OreData(int ore, int level, double experience, int replacement, int respawn, int pet, int oreCount, double success, int[] objects, double infernalExperience) {
59 this.objects = objects;
60 this.level = level;
61 this.experience = experience;
62 this.replacement = replacement;
63 this.respawn = respawn;
64 this.pet = pet;
65 this.oreCount = oreCount;
66 this.success = success;
67 this.ore = ore;
68 this.infernalExperience = infernalExperience;
69 }
70
71 /** Gets the ore data. */
72 public static OreData forId(int id) {
73 for (OreData data : OreData.values())
74 for (int object : data.objects)
75 if (object == id)
76 return data;
77 return null;
78 }
79}
OreData(int ore, int level, double experience, int replacement, int respawn, int pet, int oreCount, double success, int[] objects, double infernalExperience)
Creates the node.
Definition OreData.java:58
static OreData forId(int id)
Gets the ore data.
Definition OreData.java:72
final double success
The success rate for the ore data.
Definition OreData.java:50
final int oreCount
The amount of ores that this ore can give.
Definition OreData.java:47
final int ore
The ore this node contains.
Definition OreData.java:29
final int respawn
The node respawn timer.
Definition OreData.java:41
final double experience
The experience.
Definition OreData.java:35
final int level
The minimum level to mine this node.
Definition OreData.java:32
final int replacement
The node replacement.
Definition OreData.java:38
final int[] objects
The object identification of this node.
Definition OreData.java:53