RuneHive-Game
Loading...
Searching...
No Matches
TreeData.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.woodcutting;
2
3/**
4 * Holds all the data for trees.
5 *
6 * @author Daniel
7 */
8public enum TreeData {
9 NORMAL_TREE(1, 1511, 1342, 15, 25.0D, 317_647, 2, 1.0, new int[]{1276, 1278, 1279}),
10 DYING_TREE(1, 1511, 3649, 15, 25.0D, 317_647, 2, 1.0, new int[]{3648}),
11 DEAD_TREE(1, 1511, 1341, 15, 25.0D, 317_647, 2, 1.0, new int[]{1284}),
12 DEAD_TREE1(1, 1511, 1351, 15, 25.0D, 317_647, 2, 1.0, new int[]{1286}),
13 DEAD_TREE2(1, 1511, 1347, 15, 25.0D, 317_647, 2, 1.0, new int[]{1282, 1283}),
14 DEAD_TREE3(1, 1511, 1352, 15, 25.0D, 317_647, 2, 1.0, new int[]{1365}),
15 DEAD_TREE4(1, 1511, 1353, 15, 25.0D, 317_647, 2, 1.0, new int[]{1289}),
16 DEAD_TREE5(1, 1511, 1285, 15, 25.0D, 317_647, 2, 1.0, new int[]{1349}),
17 ACHEY_TREE(1, 2862, 3371, 15, 25.0D, 317_647, 2, 1.0, new int[]{2023}),
18 OAK_TREE(15, 1521, 1356, 25, 37.5D, 361_146, 5, 0.8, new int[]{10820}),
19 WILLOW_TREE(30, 1519, 9471, 30, 67.5D, 289_286, 10, 0.6, new int[]{1756, 1758, 1760, 10831}),
20 WILLOW_TREE1(30, 1519, 9711, 30, 67.5D, 289_286, 10, 0.6, new int[]{1750, 10819}),
21 TEAK_TREE(35, 6333, 9037, 32, 85.0D, 251_528, 10, 0.6, new int[]{9036}),
22 MAPLE_TREE(45, 1517, 9712, 35, 100.0D, 221_918, 10, 0.5, new int[]{1759, 10832}),
23 HOLLOW_TREE(45, 3239, 4061, 35, 100.0D, 221_918, 10, 0.5, new int[]{1752}),
24 MAHOGANY_TREE(50, 6332, 9035, 40, 130.0D, 175_227, 11, 0.4, new int[]{9034}),
25 ARCTIC_PINE_TREE(54, 10810, 1356, 40, 150.0D, 155_227, 11, 0.4, new int[]{3037}),
26 YEW_TREE(60, 1515, 9714, 45, 175.0D, 145_013, 12, 0.3, new int[]{10822, 10823}),
27 MAGIC_TREE(75, 1513, 9713, 60, 250.0D, 72_321, 15, 0.1, new int[]{10834}),
28 REDWOOD_TREE(90, 19669, 29669, 60, 250.0D, 28_321, 19, 0.1, new int[]{29668, 29670});
29
30 /** The level required to chop the tree. */
31 public final int levelRequired;
32
33 /** The product identification for chopping the tree. */
34 public final int item;
35
36 /** THe replacement object for chopping down the tree. */
37 public final int replacement;
38
39 /** The respawn time for the tree. */
40 public final int respawn;
41
42 /** The experience rewarded for chopping down the tree. */
43 public final double experience;
44
45 /** The pet rate for obtaining the tree. */
46 public final int petRate;
47
48 /** The log attribute for the tree. */
49 public final int logs;
50
51 /** The success rate for chopping down the tree. */
52 public final double success;
53
54 /** The tree identifications. */
55 public final int[] tree;
56
57 /** Constructs a new <enum>TreeData</enum>. */
58 TreeData(int level, int item, int replacement, int respawn, double experience, int petRate, int logs, double success, int[] tree) {
59 this.levelRequired = level;
60 this.item = item;
61 this.replacement = replacement;
62 this.respawn = respawn;
63 this.experience = experience;
64 this.petRate = petRate;
65 this.tree = tree;
66 this.logs = logs;
67 this.success = success;
68 }
69
70 /** Gets the tree data based on the object identification. */
71 public static TreeData forId(int id) {
72 for (TreeData data : TreeData.values())
73 for (int object : data.tree)
74 if (object == id) return data;
75 return null;
76 }
77}
final double success
The success rate for chopping down the tree.
Definition TreeData.java:52
final double experience
The experience rewarded for chopping down the tree.
Definition TreeData.java:43
final int levelRequired
The level required to chop the tree.
Definition TreeData.java:31
final int respawn
The respawn time for the tree.
Definition TreeData.java:40
static TreeData forId(int id)
Gets the tree data based on the object identification.
Definition TreeData.java:71
final int[] tree
The tree identifications.
Definition TreeData.java:55
final int item
The product identification for chopping the tree.
Definition TreeData.java:34
final int petRate
The pet rate for obtaining the tree.
Definition TreeData.java:46
final int logs
The log attribute for the tree.
Definition TreeData.java:49
final int replacement
THe replacement object for chopping down the tree.
Definition TreeData.java:37
TreeData(int level, int item, int replacement, int respawn, double experience, int petRate, int logs, double success, int[] tree)
Constructs a new <enum>TreeData</enum>.
Definition TreeData.java:58