summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/api/IItemDb.java
blob: fc9d9037107d30e319769e3ca647a87b8927a112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package net.ess3.api;

import org.bukkit.inventory.ItemStack;


public interface IItemDb extends IReload
{
	/**
	 *
	 * @param name
	 * @param user
	 * @return
	 * @throws Exception
	 */
	ItemStack get(final String name, final IUser user) throws Exception;

	/**
	 *
	 * @param name
	 * @param quantity
	 * @return
	 * @throws Exception
	 */
	ItemStack get(final String name, final int quantity) throws Exception;

	/**
	 *
	 * @param name
	 * @return
	 * @throws Exception
	 */
	ItemStack get(final String name) throws Exception;
}