mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 11:17:19 +00:00
Add utility methods to SlottedItem.
This commit is contained in:
1 parent
b06bd36d55
commit
5d3dd47f17
1 file changed
+18
@@ -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.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user