From 5d3dd47f1752c66d09931efe8c0152d36824c325 Mon Sep 17 00:00:00 2001 From: Major- Date: Sat, 22 Feb 2014 00:53:43 +0000 Subject: [PATCH] Add utility methods to SlottedItem. --- src/org/apollo/game/model/SlottedItem.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/org/apollo/game/model/SlottedItem.java b/src/org/apollo/game/model/SlottedItem.java index 8cae5643..1f878506 100644 --- a/src/org/apollo/game/model/SlottedItem.java +++ b/src/org/apollo/game/model/SlottedItem.java @@ -28,6 +28,24 @@ public final class SlottedItem { this.item = item; } + /** + * Gets the id of the {@link Item}. + * + * @return The id. + */ + public int getId() { + return item.getId(); + } + + /** + * Gets the amount of the {@link Item}. + * + * @return The amount. + */ + public int getamount() { + return item.getAmount(); + } + /** * Gets the item. *