blob: 7e5d8957e8874534b9e4d16ab10a5e763c13de66 [file] [log] [blame] [raw]
package net.lightstone.model;
/**
* A class which represents an {@link Item} and its associated slot in an
* inventory.
*/
public final class SlottedItem {
/**
* The slot.
*/
private final int slot;
/**
* The item.
*/
private final Item item;
/**
* Creates a slotted item.
* @param slot The slot.
* @param item The item.
*/
public SlottedItem(int slot, Item item) {
this.slot = slot;
this.item = item;
}
/**
* Gets the slot.
* @return The slot.
*/
public int getSlot() {
return slot;
}
/**
* Gets the item.
* @return The item.
*/
public Item getItem() {
return item;
}
}