ChestShop-3/com/Acrobot/ChestShop/Chests/ChestObject.java

27 lines
630 B
Java
Raw Normal View History

2011-05-15 19:33:03 +02:00
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);
2011-05-29 13:25:25 +02:00
public void clearSlot(int slot);
public void addItem(ItemStack item, int amount);
2011-05-29 13:25:25 +02:00
public void removeItem(ItemStack item, short durability, int amount);
public int amount(ItemStack item, short durability);
2011-05-29 13:25:25 +02:00
public boolean hasEnough(ItemStack item, int amount, short durability);
2011-05-29 13:25:25 +02:00
public boolean fits(ItemStack item, int amount, short durability);
public int getSize();
}