mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 08:39:17 +00:00
Add utility methods to SlottedItem.
This commit is contained in:
@@ -28,6 +28,24 @@ public final class SlottedItem {
|
|||||||
this.item = item;
|
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.
|
* Gets the item.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user