RuneHive-Game
Loading...
Searching...
No Matches
ItemOnItemInteractionEvent.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
ItemOnItemInteractionEvent
extends
InteractionEvent
{
7
8
private
final
Item
first
,
second
;
9
private
final
int
firstSlot
,
secondSlot
;
10
11
public
ItemOnItemInteractionEvent
(
Item
first
,
Item
second
,
int
firstSlot
,
int
secondSlot
) {
12
super(
InteractionType
.
ITEM_ON_ITEM
);
13
this.first =
first
;
14
this.second =
second
;
15
this.firstSlot =
firstSlot
;
16
this.secondSlot =
secondSlot
;
17
}
18
19
public
Item
getFirst
() {
20
return
first
;
21
}
22
23
public
int
getFirstSlot
() {
24
return
firstSlot
;
25
}
26
27
public
Item
getSecond
() {
28
return
second
;
29
}
30
31
public
int
getSecondSlot
() {
32
return
secondSlot
;
33
}
34
}
com.runehive.content.event.InteractionEvent.InteractionEvent
InteractionEvent(InteractionType type)
Definition
InteractionEvent.java:41
com.runehive.content.event.impl.ItemOnItemInteractionEvent.firstSlot
final int firstSlot
Definition
ItemOnItemInteractionEvent.java:9
com.runehive.content.event.impl.ItemOnItemInteractionEvent.getFirst
Item getFirst()
Definition
ItemOnItemInteractionEvent.java:19
com.runehive.content.event.impl.ItemOnItemInteractionEvent.getSecondSlot
int getSecondSlot()
Definition
ItemOnItemInteractionEvent.java:31
com.runehive.content.event.impl.ItemOnItemInteractionEvent.getFirstSlot
int getFirstSlot()
Definition
ItemOnItemInteractionEvent.java:23
com.runehive.content.event.impl.ItemOnItemInteractionEvent.secondSlot
final int secondSlot
Definition
ItemOnItemInteractionEvent.java:9
com.runehive.content.event.impl.ItemOnItemInteractionEvent.getSecond
Item getSecond()
Definition
ItemOnItemInteractionEvent.java:27
com.runehive.content.event.impl.ItemOnItemInteractionEvent.second
final Item second
Definition
ItemOnItemInteractionEvent.java:8
com.runehive.content.event.impl.ItemOnItemInteractionEvent.ItemOnItemInteractionEvent
ItemOnItemInteractionEvent(Item first, Item second, int firstSlot, int secondSlot)
Definition
ItemOnItemInteractionEvent.java:11
com.runehive.content.event.impl.ItemOnItemInteractionEvent.first
final Item first
Definition
ItemOnItemInteractionEvent.java:8
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
com.runehive.content.event.InteractionEvent.InteractionType.ITEM_ON_ITEM
ITEM_ON_ITEM
Definition
InteractionEvent.java:19