2011-05-15 19:33:03 +02:00
|
|
|
package com.Acrobot.ChestShop.Chests;
|
2011-05-15 18:16:25 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
2011-05-15 18:16:25 +02:00
|
|
|
public void clearSlot(int slot);
|
|
|
|
|
2011-06-14 15:07:44 +02:00
|
|
|
public void addItem(ItemStack item, int amount);
|
2011-05-29 13:25:25 +02:00
|
|
|
|
2011-05-15 18:16: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
|
|
|
|
2011-05-15 18:16:25 +02:00
|
|
|
public boolean hasEnough(ItemStack item, int amount, short durability);
|
2011-05-29 13:25:25 +02:00
|
|
|
|
2011-05-15 18:16:25 +02:00
|
|
|
public boolean fits(ItemStack item, int amount, short durability);
|
|
|
|
|
|
|
|
public int getSize();
|
|
|
|
}
|