mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 18:09:41 -05:00
Added PlayerInventory interface with playeronly methods. Add equals to ItemStack. By: Erik Broes <erikbroes@grum.nl>
28 lines
486 B
Java
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();
|
|
}
|