RuneHive-Game
Loading...
Searching...
No Matches
DropItemEvent.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.items.ground.GroundItem;
6import com.runehive.game.world.position.Position;
7
8public class DropItemEvent implements Event {
9
10 private final Item item;
11 private final int slot;
12 private final Position position;
13
15 this.item = item;
16 this.slot = slot;
17 this.position = position;
18 }
19
20 public Item getItem() {
21 return item;
22 }
23
24 public int getSlot() {
25 return slot;
26 }
27
29 return position;
30 }
31
32}
DropItemEvent(Item item, int slot, Position position)
The container class that represents an item that can be interacted with.
Definition Item.java:21
Represents a single tile on the game world.
Definition Position.java:14
Definition Event.kt:9