ChestShop-3/com/Acrobot/ChestShop/Chests/ChestObject.java
2011-05-29 13:25:25 +02:00

27 lines
648 B
Java

package com.Acrobot.ChestShop.Chests;
import org.bukkit.inventory.ItemStack;
/**
* @author Acrobot
*/
public interface ChestObject {
public ItemStack[] getContents();
public void setSlot(int slot, ItemStack item);
public void clearSlot(int slot);
public void addItem(ItemStack item, short durability, 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();
}