RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
BrotherData.java
1package com.osroyale.content.activity.impl.barrows;
2
3import com.osroyale.game.world.entity.mob.npc.Npc;
4import com.osroyale.game.world.position.Position;
5
45
46public enum BrotherData {
47 AHRIM(1672, new Position(3562, 3285), new Position(3568, 3291), new Position(3565, 3288), new Position(3557, 9703, 3)),
48 GUTHAN(1674, new Position(3575, 3279), new Position(3580, 3286), new Position(3577, 3282), new Position(3534, 9704, 3)),
49 VERAC(1677, new Position(3554, 3293), new Position(3560, 3301), new Position(3557, 3297), new Position(3578, 9706, 3)),
50 KARIL(1675, new Position(3563, 3273), new Position(3568, 3278), new Position(3566, 3275), new Position(3546, 9684, 3)),
51 DHAROK(1673, new Position(3573, 3295), new Position(3578, 3300), new Position(3575, 3298), new Position(3556, 9718, 3)),
52 TORAG(1676, new Position(3551, 3279), new Position(3556, 3285), new Position(3554, 3282), new Position(3568, 9683, 3));
53
55 private int npcId;
56
58 private Position southWest;
59
61 private Position northEast;
62
64 private Position hillPosition;
65
67 private Position cryptPosition;
68
69 BrotherData(int npcId, Position southWest, Position northEast, Position hillPosition, Position cryptPosition) {
70 this.npcId = npcId;
71 this.southWest = southWest;
72 this.northEast = northEast;
73 this.hillPosition = hillPosition;
74 this.cryptPosition = cryptPosition;
75 }
76
82 public int getNpcId() {
83 return npcId;
84 }
85
92 return southWest;
93 }
94
101 return northEast;
102 }
103
110 return hillPosition;
111 }
112
119 return cryptPosition;
120 }
121
122 public static boolean isBarrowsBrother(Npc mob) {
123 for (BrotherData brother : values()) {
124 if (brother.getNpcId() == mob.id) {
125 return true;
126 }
127 }
128 return false;
129 }
130
131 public static BrotherData getBarrowsBrother(Npc mob) {
132 for (BrotherData brother : values()) {
133 if (brother.getNpcId() == mob.id) {
134 return brother;
135 }
136 }
137 return null;
138 }
139}