RuneHive-Game
Loading...
Searching...
No Matches
NpcInteractionEvent.java
Go to the documentation of this file.
1
package
com.runehive.content.event.impl;
2
3
import
com.runehive.game.world.entity.mob.npc.Npc;
4
import
com.runehive.content.event.InteractionEvent;
5
6
public
class
NpcInteractionEvent
extends
InteractionEvent
{
7
8
private
final
Npc
npc
;
9
private
final
int
opcode
;
10
11
public
NpcInteractionEvent
(
InteractionType
type
,
Npc
npc
,
int
opcode
) {
12
super(
type
);
13
this.npc =
npc
;
14
this.opcode =
opcode
;
15
}
16
17
public
Npc
getNpc
() {
18
return
npc
;
19
}
20
21
public
int
getOpcode
() {
22
return
opcode
;
23
}
24
25
}
com.runehive.content.event.InteractionEvent.InteractionEvent
InteractionEvent(InteractionType type)
Definition
InteractionEvent.java:41
com.runehive.content.event.InteractionEvent.type
final InteractionType type
Definition
InteractionEvent.java:38
com.runehive.content.event.impl.NpcInteractionEvent.getNpc
Npc getNpc()
Definition
NpcInteractionEvent.java:17
com.runehive.content.event.impl.NpcInteractionEvent.NpcInteractionEvent
NpcInteractionEvent(InteractionType type, Npc npc, int opcode)
Definition
NpcInteractionEvent.java:11
com.runehive.content.event.impl.NpcInteractionEvent.opcode
final int opcode
Definition
NpcInteractionEvent.java:9
com.runehive.content.event.impl.NpcInteractionEvent.getOpcode
int getOpcode()
Definition
NpcInteractionEvent.java:21
com.runehive.content.event.impl.NpcInteractionEvent.npc
final Npc npc
Definition
NpcInteractionEvent.java:8
com.runehive.game.world.entity.mob.npc.Npc
Represents a non-player character in the in-game world.
Definition
Npc.java:29
com.runehive.content.event.InteractionEvent.InteractionType
Definition
InteractionEvent.java:5