RuneHive-Game
Loading...
Searching...
No Matches
ItemInteractionEvent.java
Go to the documentation of this file.
1
package
com.runehive.content.event.impl;
2
3
import
com.runehive.content.event.InteractionEvent;
4
import
com.runehive.game.world.items.Item;
5
6
public
class
ItemInteractionEvent
extends
InteractionEvent
{
7
8
private
final
Item
item
;
9
private
final
int
slot
,
opcode
;
10
11
ItemInteractionEvent
(
InteractionType
type
,
Item
item
,
int
slot
,
int
opcode
) {
12
super(
type
);
13
this.item =
item
;
14
this.slot =
slot
;
15
this.opcode =
opcode
;
16
}
17
18
public
Item
getItem
() {
19
return
item
;
20
}
21
22
public
int
getOpcode
() {
23
return
opcode
;
24
}
25
26
public
int
getSlot
() {
27
return
slot
;
28
}
29
30
}
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.ItemInteractionEvent.ItemInteractionEvent
ItemInteractionEvent(InteractionType type, Item item, int slot, int opcode)
Definition
ItemInteractionEvent.java:11
com.runehive.content.event.impl.ItemInteractionEvent.getItem
Item getItem()
Definition
ItemInteractionEvent.java:18
com.runehive.content.event.impl.ItemInteractionEvent.item
final Item item
Definition
ItemInteractionEvent.java:8
com.runehive.content.event.impl.ItemInteractionEvent.opcode
final int opcode
Definition
ItemInteractionEvent.java:9
com.runehive.content.event.impl.ItemInteractionEvent.getSlot
int getSlot()
Definition
ItemInteractionEvent.java:26
com.runehive.content.event.impl.ItemInteractionEvent.getOpcode
int getOpcode()
Definition
ItemInteractionEvent.java:22
com.runehive.game.world.items.Item
The container class that represents an item that can be interacted with.
Definition
Item.java:21
com.runehive.content.event.InteractionEvent.InteractionType
Definition
InteractionEvent.java:5
slot
Definition
FirstNpcOptionEvent.kt:10