mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-24 19:15:48 +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.
31 lines
545 B
Java
31 lines
545 B
Java
package com.Acrobot.ChestShop.Containers;
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
|
|
|
/**
|
|
* @author Acrobot
|
|
*/
|
|
public class AdminChest implements Container {
|
|
public boolean isEmpty() {
|
|
return false;
|
|
}
|
|
|
|
public void addItem(ItemStack item) {
|
|
}
|
|
|
|
public void removeItem(ItemStack item) {
|
|
}
|
|
|
|
public int amount(ItemStack item) {
|
|
return Integer.MAX_VALUE;
|
|
}
|
|
|
|
public boolean hasEnough(ItemStack item) {
|
|
return true;
|
|
}
|
|
|
|
public boolean fits(ItemStack item) {
|
|
return true;
|
|
}
|
|
}
|