ChestShop-3/com/Acrobot/ChestShop/Containers/Container.java
Acrobot 5908eb67fa - Added API (let's start with simple things first)
- Copied utilities from ChestShop-4
- Made code really, really nicer to read
- Made every external plugin's wrapper a listener, so it listens to events instead of being hard-coded.
2012-06-08 15:28:36 +02:00

21 lines
345 B
Java

package com.Acrobot.ChestShop.Containers;
import org.bukkit.inventory.ItemStack;
/**
* @author Acrobot
*/
public interface Container {
boolean isEmpty();
void addItem(ItemStack item);
void removeItem(ItemStack item);
int amount(ItemStack item);
boolean hasEnough(ItemStack item);
boolean fits(ItemStack item);
}