Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit.inventory;
2
3/**
4 * Represents a slot in an inventory
5 */
6public interface Slot {
7
8 /**
9 * Gets the inventory this slot belongs to
10 *
11 * @return The inventory
12 */
13 public Inventory getInventory();
14
15 /**
16 * Get the index this slot belongs to
17 *
18 * @return Index of the slot
19 */
20 public int getIndex();
21
22 /**
23 * Get the item from the slot.
24 *
25 * @return ItemStack in the slot.
26 */
27 public ItemStack getItem();
28}