mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-25 17:37:34 +01:00
27 lines
632 B
Java
27 lines
632 B
Java
package com.Acrobot.ChestShop.Containers;
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
|
|
|
/**
|
|
* @author Acrobot
|
|
*/
|
|
public interface Container {
|
|
public ItemStack[] getContents();
|
|
|
|
public void setSlot(int slot, ItemStack item);
|
|
|
|
public void clearSlot(int slot);
|
|
|
|
public void addItem(ItemStack item, int amount);
|
|
|
|
public void removeItem(ItemStack item, short durability, int amount);
|
|
|
|
public int amount(ItemStack item, short durability);
|
|
|
|
public boolean hasEnough(ItemStack item, int amount, short durability);
|
|
|
|
public boolean fits(ItemStack item, int amount, short durability);
|
|
|
|
public int getSize();
|
|
}
|