All inventory stuff in org.bukkit moved to org.bukkit.inventory
This commit is contained in:
27
src/main/java/org/bukkit/inventory/Slot.java
Normal file
27
src/main/java/org/bukkit/inventory/Slot.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package org.bukkit.inventory;
|
||||
|
||||
/**
|
||||
* 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();
|
||||
}
|
||||
Reference in New Issue
Block a user