RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
PickaxeData.java
1package com.osroyale.content.skill.impl.mining;
2
3import com.google.common.collect.ImmutableSet;
4import com.osroyale.game.world.entity.mob.player.Player;
5
6import java.util.Optional;
7
48
49public enum PickaxeData {
50 BRONZE_PICKAXE(1265, 1, 625, 0.05),
51 IRON_PICKAXE(1267, 1, 626, 0.08),
52 STEEL_PICKAXE(1269, 6, 627, 0.12),
53 MITHRIL_PICKAXE(1273, 21, 629, 0.16),
54 ADAMANT_PICKAXE(1271, 31, 628, 0.2),
55 RUNE_PICKAXE(1275, 41, 624, 0.25),
56 INFERNO_ADZE(13243, 75, 4483, 0.55),
57 THIRD_AGE_PICKAXE(20014, 90, 7283, 0.6),
58 DRAGON_PICKAXE(11920, 61, 7139, 0.6),
59 DRAGON_OR_PICKAXE(12797, 61, 643, 0.6);
60
64 private static final ImmutableSet<PickaxeData> VALUES = ImmutableSet.copyOf(values());
65
67 public final int id;
68
70 public final int level;
71
73 public final int animation;
74
78 public final double speed;
79
90 PickaxeData(int id, int level, int animation, double speed) {
91 this.id = id;
92 this.level = level;
93 this.animation = animation;
94 this.speed = speed;
95 }
96
103 public static Optional<PickaxeData> getBestPickaxe(Player player) {
104 return VALUES.stream().filter(def -> player.equipment.contains(def.id) || player.inventory.contains(def.id)).findAny();
105 }
106}
PickaxeData(int id, int level, int animation, double speed)
static Optional< PickaxeData > getBestPickaxe(Player player)