2012-04-19 17:12:49 +02:00
|
|
|
package com.Acrobot.ChestShop.Containers;
|
2011-05-15 18:16:25 +02:00
|
|
|
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Acrobot
|
|
|
|
*/
|
2012-04-19 17:12:49 +02:00
|
|
|
public interface Container {
|
2012-06-08 15:28:36 +02:00
|
|
|
boolean isEmpty();
|
2011-05-15 18:16:25 +02:00
|
|
|
|
2012-06-08 15:28:36 +02:00
|
|
|
void addItem(ItemStack item);
|
2011-05-29 13:25:25 +02:00
|
|
|
|
2012-06-08 15:28:36 +02:00
|
|
|
void removeItem(ItemStack item);
|
2011-05-15 18:16:25 +02:00
|
|
|
|
2012-06-08 15:28:36 +02:00
|
|
|
int amount(ItemStack item);
|
2011-05-29 13:25:25 +02:00
|
|
|
|
2012-06-08 15:28:36 +02:00
|
|
|
boolean hasEnough(ItemStack item);
|
2011-05-29 13:25:25 +02:00
|
|
|
|
2012-06-08 15:28:36 +02:00
|
|
|
boolean fits(ItemStack item);
|
2011-05-15 18:16:25 +02:00
|
|
|
}
|