RuneHive-Game
Loading...
Searching...
No Matches
ItemOnItemEvent.java
Go to the documentation of this file.
1package com.runehive.game.event.impl;
2
3import com.runehive.game.event.Event;
4import com.runehive.game.world.items.Item;
5
6public class ItemOnItemEvent implements Event {
7
8 private final Item used;
9 private final int usedSlot;
10 private final Item with;
11 private final int withSlot;
12
14 this.used = used;
15 this.usedSlot = usedSlot;
16 this.with = with;
17 this.withSlot = withSlot;
18 }
19
20 public Item getUsed() {
21 return used;
22 }
23
24 public int getUsedSlot() {
25 return usedSlot;
26 }
27
28 public Item getWith() {
29 return with;
30 }
31
32 public int getWithSlot() {
33 return withSlot;
34 }
35
36}
ItemOnItemEvent(Item used, int usedSlot, Item with, int withSlot)
The container class that represents an item that can be interacted with.
Definition Item.java:21
Definition Event.kt:9