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