RuneHive-Game
Loading...
Searching...
No Matches
ItemOnNpcEvent.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.entity.mob.npc.Npc;
5import com.runehive.game.world.items.Item;
6
7public class ItemOnNpcEvent implements Event {
8
9 private final Npc npc;
10 private final Item used;
11 private final int slot;
12
14 this.npc = npc;
15 this.used = used;
16 this.slot = slot;
17 }
18
19 public Npc getNpc() {
20 return npc;
21 }
22
23 public Item getUsed() {
24 return used;
25 }
26
27 public int getSlot() {
28 return slot;
29 }
30
31}
ItemOnNpcEvent(Npc npc, Item used, int slot)
Represents a non-player character in the in-game world.
Definition Npc.java:29
The container class that represents an item that can be interacted with.
Definition Item.java:21
Definition Event.kt:9