RuneHive-Game
Loading...
Searching...
No Matches
BoneData.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.prayer;
2
3import java.util.Arrays;
4import java.util.Optional;
5
6/**
7 * Holds the Bone data.
8 */
9public enum BoneData {
10 NORMAL_BONES(526, 527, 4.5D, 1),
11 WOLF_BONES(2859, 2860, 4.5D, 1),
12 BAT_BONES(530, 531, 4.5D, 1),
13 BIG_BONES(532, 533, 15.0D, 2),
14 BABYDRAGON_BONES(534, 535, 30.0D, 3),
15 DRAGON_BONES(536, 537, 72.0D, 4),
16 OURG_BONES(4834, 4835, 140.0D, 4),
17 LONG_BONE(10976, 10977, 100.0D, 4),
18 SKELETAL_WYVERN_BONES(6812, 6818, 72.0D, 4),
19 LAVA_DRAGON_BONES(11943, 11944, 85.0D, 4),
20 DAGG_BONES(6729, 6730, 125.0D, 4),
21 SUPERIOR_DRAGON_BONES(22124, 22125, 150.0D, 5);
22
23 /** The id of the bone */
24 private final int id;
25
26 private final int id2;
27 /** The experience of the bone */
28 private final double experience;
29
30 /** The amount of prayer points rewarded for bone amulet. */
31 private final int boneAmulet;
32
33 /** The bone data */
34 BoneData(int id, int noted, double experience, int boneAmulet) {
35 this.id = id;
36 this.id2 = noted;
37 this.experience = experience;
38 this.boneAmulet = boneAmulet;
39 }
40
41 /** Gets the id of the bone */
42 public int getId() {
43 return id;
44 }
45 public int getId2() {
46 return id2;
47 }
48
49 /** Gets the experience of the bone */
50 public double getExperience() {
51 return experience;
52 }
53
54 public int getBoneAmulet() {
55 return boneAmulet;
56 }
57
58 /** Gets the bone data based on the item */
59 public static Optional<BoneData> forId(int id) {
60 return Arrays.stream(values()).filter(a -> a.id == id).findAny();
61 }
62}
static Optional< BoneData > forId(int id)
Gets the bone data based on the item.
Definition BoneData.java:59
final int boneAmulet
The amount of prayer points rewarded for bone amulet.
Definition BoneData.java:31
BoneData(int id, int noted, double experience, int boneAmulet)
The bone data.
Definition BoneData.java:34
int getId()
Gets the id of the bone.
Definition BoneData.java:42
double getExperience()
Gets the experience of the bone.
Definition BoneData.java:50
final double experience
The experience of the bone.
Definition BoneData.java:28