RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SlayerUnlockable.java
1package com.osroyale.content.skill.impl.slayer;
2
3import java.util.Arrays;
4import java.util.Optional;
5
44
45public enum SlayerUnlockable {
46 SLAYER_HELM("Malevolent masquerade", 11864, 250, "Learn to combine the protective Slayer\\nheadgear & Slayer gem into one universal\\nhelmet. 55 crafting needed."),
47 BROAD_BOLT("Broader fletching", 11874, 75, "Learn to fletch broad arrows (with level 52\\nfletching) and broad bolts (with level 55 \\nfletching)."),
48 RING_OF_WEALTH("Ring bling", 2572, 250, "Learn to craft your own Slayer rings, with\\nlevel 75 crafting."),
49 CANNON_BALLS("Balls of fury", 2, 75, "Learn to craft your own cannonballs, with\\nlevel 35 smithing."),
50 ZULRAH("Give me venom", 12924, 100, "Unlock the ability to be assigned Zulrah as\\na Slayer task, 95 Slayer needed."),
51 KING_BLACK_DRAGON("King killer", 11283, 100, "Unlock the ability to be assigned King black\\ndragon as a Slayer task, 75 Slayer needed."),
52 CHAOS_ELEMENT("I strive on chaos", 12694, 100, "Unlock the ability to be assigned Chaos\\nelemental as a Slayer task, 65 Slayer\\nneeded."),
53 CRAZY_ARCHAEOLOGIST("You drive me crazy", 11990, 100, "Unlock the ability to be assigned Crazy\\narchaeologist as a Slayer task, 60\\nSlayer needed."),;
54
56 private final String name;
57
59 private final int item;
60
62 private final int cost;
63
65 private final String description;
66
79 SlayerUnlockable(String name, int item, int cost, String description) {
80 this.name = name;
81 this.item = item;
82 this.cost = cost;
83 this.description = description;
84 }
85
91 public String getName() {
92 return name;
93 }
94
100 public int getItem() {
101 return item;
102 }
103
109 public int getCost() {
110 return cost;
111 }
112
118 public String getDescription() {
119 return description;
120 }
121
129 public static Optional<SlayerUnlockable> get(int ordinal) {
130 return Arrays.stream(values()).filter($it -> $it.ordinal() == ordinal).findFirst();
131 }
132}
SlayerUnlockable(String name, int item, int cost, String description)