ChestShop-3/com/Acrobot/ChestShop/Chests/ChestObject.java
Acrobot d919818bb6 - Fixed not checking whether Material is null before getting durability from String
- Moved Register classes, should work with other plugins now
- Cleaned the code a bit
2011-06-14 15:07:44 +02:00

27 lines
630 B
Java

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);
public void clearSlot(int slot);
public void addItem(ItemStack item, int amount);
public void removeItem(ItemStack item, short durability, int amount);
public int amount(ItemStack item, short durability);
public boolean hasEnough(ItemStack item, int amount, short durability);
public boolean fits(ItemStack item, int amount, short durability);
public int getSize();
}