RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
RunecraftData.java
1package com.osroyale.content.skill.impl.runecrafting;
2
3import java.util.Arrays;
4import java.util.Optional;
5
22
23public enum RunecraftData {
24 AIR(34760, 556, 6.0D, new int[] { 1, 11, 22, 33, 44, 55, 66, 77, 88, 99 }),
25 MIND(34761, 558, 6.5D, new int[] { 1, 14, 28, 42, 56, 70, 84, 98 }),
26 WATER(34762, 555, 7.0D, new int[] { 5, 19, 38, 57, 76, 95 }),
27 EARTH(34763, 557, 7.5D, new int[] { 9, 26, 52, 78 }),
28 FIRE(34764, 554, 8.0D, new int[] { 14, 35, 70 }),
29 BODY(34765, 559, 8.5D, new int[] { 20, 46, 92 }),
30 COSMIC(34766, 564, 10.0D, new int[] { 27, 59 }),
31 CHAOS(34769, 562, 10.5D, new int[] { 35, 74 }),
32 NATURE(34768, 561, 11.0D, new int[] { 44, 91 }),
33 LAW(34767, 563, 10.5D, new int[] { 54 }),
34 DEATH(34770, 560, 12.0D, new int[] { 65 }),
35 BLOOD(27978, 565, 12.5D, new int[] { 77 }),
36 ASTRAL(34771, 9075, 21.5D, new int[] { 82 }),
37 SOUL(27980, 566, 29.7, new int[] { 90 }),
38 WARTH(34772, 21880, 52.5D, new int[] { 95 }),
39 OURNIA(29631, -1, -1, new int[] { 55 });
40
42 private final int object;
43
45 private final int runes;
46
48 private final double experience;
49
51 private final int[] multiplier;
52
54 RunecraftData(int object, int runes, double experience, int[] multiplier) {
55 this.object = object;
56 this.runes = runes;
57 this.experience = experience;
58 this.multiplier = multiplier;
59 }
60
62 public int getObject() {
63 return object;
64 }
65
67 public int getLevel() {
68 return multiplier[0];
69 }
70
72 public int[] getMultiplier() {
73 return multiplier;
74 }
75
77 public int getRunes() {
78 return runes;
79 }
80
82 public double getExperience() {
83 return experience;
84 }
85
87 public static Optional<RunecraftData> forId(int id) {
88 return Arrays.stream(values()).filter(a -> a.object == id).findAny();
89 }
90}
static Optional< RunecraftData > forId(int id)
RunecraftData(int object, int runes, double experience, int[] multiplier)