RuneHive-Game
Loading...
Searching...
No Matches
FishingTool.java
Go to the documentation of this file.
1
package
com.runehive.content.skill.impl.fishing;
2
3
import
java.util.HashMap;
4
import
java.util.Map;
5
6
public
enum
FishingTool
{
7
SMALL_NET
(303, 621,
new
short
[]{317, 3150, 321, 5004, 7994}),
8
BIG_NET
(305, 621,
new
short
[]{353, 341, 363}),
9
CRAYFISH_CAGE
(13431, 619,
new
short
[]{13435}),
10
FISHING_ROD
(307, 622,
new
short
[]{327, 345, 349, 3379, 5001, 2148}),
11
FLYFISHING_ROD
(309, 622,
new
short
[]{335, 331}),
12
KARAMBWAN_POT
(3157, -1,
new
short
[]{3142}),
13
HARPOON
(311, 618,
new
short
[]{359, 371}),
14
DRAGON_HARPOON
(21028, 618,
new
short
[]{359, 371}),
15
DRAGON_HARPOON2
(21029, 618,
new
short
[]{359, 371}),
16
LOBSTER_POT
(301, 619,
new
short
[]{377});
17
18
private
int
toolId
;
19
private
int
animation
;
20
private
short
[]
outcomes
;
21
22
private
static
Map<Integer, FishingTool>
tools
=
new
HashMap<>();
23
24
public
static
void
declare
() {
25
for
(
FishingTool
tool : values())
26
tools
.put(tool.getToolId(), tool);
27
}
28
29
FishingTool
(
int
toolId
,
int
animation
,
short
[]
outcomes
) {
30
this.toolId =
toolId
;
31
this.outcomes =
outcomes
;
32
this.animation =
animation
;
33
}
34
35
public
int
getAnimationId
() {
36
return
animation
;
37
}
38
39
public
short
[]
getOutcomes
() {
40
return
outcomes
;
41
}
42
43
public
int
getToolId
() {
44
return
toolId
;
45
}
46
47
public
static
FishingTool
forId
(
int
id
) {
48
return
tools
.get(
id
);
49
}
50
51
}
com.runehive.content.skill.impl.fishing.FishingTool.SMALL_NET
SMALL_NET
Definition
FishingTool.java:7
com.runehive.content.skill.impl.fishing.FishingTool.outcomes
short[] outcomes
Definition
FishingTool.java:20
com.runehive.content.skill.impl.fishing.FishingTool.BIG_NET
BIG_NET
Definition
FishingTool.java:8
com.runehive.content.skill.impl.fishing.FishingTool.declare
static void declare()
Definition
FishingTool.java:24
com.runehive.content.skill.impl.fishing.FishingTool.forId
static FishingTool forId(int id)
Definition
FishingTool.java:47
com.runehive.content.skill.impl.fishing.FishingTool.FLYFISHING_ROD
FLYFISHING_ROD
Definition
FishingTool.java:11
com.runehive.content.skill.impl.fishing.FishingTool.tools
static Map< Integer, FishingTool > tools
Definition
FishingTool.java:22
com.runehive.content.skill.impl.fishing.FishingTool.DRAGON_HARPOON2
DRAGON_HARPOON2
Definition
FishingTool.java:15
com.runehive.content.skill.impl.fishing.FishingTool.HARPOON
HARPOON
Definition
FishingTool.java:13
com.runehive.content.skill.impl.fishing.FishingTool.LOBSTER_POT
LOBSTER_POT
Definition
FishingTool.java:16
com.runehive.content.skill.impl.fishing.FishingTool.KARAMBWAN_POT
KARAMBWAN_POT
Definition
FishingTool.java:12
com.runehive.content.skill.impl.fishing.FishingTool.getAnimationId
int getAnimationId()
Definition
FishingTool.java:35
com.runehive.content.skill.impl.fishing.FishingTool.animation
int animation
Definition
FishingTool.java:19
com.runehive.content.skill.impl.fishing.FishingTool.FishingTool
FishingTool(int toolId, int animation, short[] outcomes)
Definition
FishingTool.java:29
com.runehive.content.skill.impl.fishing.FishingTool.CRAYFISH_CAGE
CRAYFISH_CAGE
Definition
FishingTool.java:9
com.runehive.content.skill.impl.fishing.FishingTool.toolId
int toolId
Definition
FishingTool.java:18
com.runehive.content.skill.impl.fishing.FishingTool.DRAGON_HARPOON
DRAGON_HARPOON
Definition
FishingTool.java:14
com.runehive.content.skill.impl.fishing.FishingTool.getOutcomes
short[] getOutcomes()
Definition
FishingTool.java:39
com.runehive.content.skill.impl.fishing.FishingTool.getToolId
int getToolId()
Definition
FishingTool.java:43
com.runehive.content.skill.impl.fishing.FishingTool.FISHING_ROD
FISHING_ROD
Definition
FishingTool.java:10