mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-28 13:05:11 +01:00
5908eb67fa
- 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.
21 lines
345 B
Java
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);
|
|
}
|