Files
Bukkit/src/main/java/org/bukkit/Slot.java
Erik Broes 9498644672 Updated inventories to a has-a relationship.
Added PlayerInventory interface with playeronly methods.
Add equals to ItemStack.
2011-01-09 18:29:48 +01:00

28 lines
486 B
Java

package org.bukkit;
/**
* Represents a slot in an inventory
*/
public interface Slot {
/**
* Gets the inventory this slot belongs to
*
* @return The inventory
*/
public Inventory getInventory();
/**
* Get the index this slot belongs to
*
* @return Index of the slot
*/
public int getIndex();
/**
* Get the item from the slot.
*
* @return ItemStack in the slot.
*/
public ItemStack getItem();
}