RuneHive-Game
Loading...
Searching...
No Matches
PickupItemEvent.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 PickupItemEvent implements Event {
9
10 private final GroundItem groundItem;
11
13 this.groundItem = groundItem;
14 }
15
17 return groundItem;
18 }
19
20 public Item getItem() {
21 return groundItem.item;
22 }
23
25 return groundItem.getPosition();
26 }
27
28}
The container class that represents an item that can be interacted with.
Definition Item.java:21
Represents a single Ground item on the world map.
Represents a single tile on the game world.
Definition Position.java:14
Definition Event.kt:9