RuneHive-Game
Loading...
Searching...
No Matches
ItemOnObjectEvent.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;
5import com.runehive.game.world.object.GameObject;
6
7public class ItemOnObjectEvent implements Event {
8
9 private final Item used;
10
11 private final int slot;
12
13 private final GameObject object;
14
15 public ItemOnObjectEvent(Item used, int slot, GameObject object) {
16 this.used = used;
17 this.slot = slot;
18 this.object = object;
19 }
20
21 public Item getUsed() {
22 return used;
23 }
24
25 public int getSlot() {
26 return slot;
27 }
28
30 return object;
31 }
32
33}
ItemOnObjectEvent(Item used, int slot, GameObject object)
The container class that represents an item that can be interacted with.
Definition Item.java:21
Definition Event.kt:9