summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/api/IWorth.java
blob: 1cec6b6f12ce5ba057bf279a2f098c1959b350c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package net.ess3.api;

import org.bukkit.inventory.ItemStack;


public interface IWorth extends IReload
{
	/**
	 * Get the price of an ItemStack
	 *
	 * @param itemStack - ItemStack to check
	 * @return - double marking price
	 */
	double getPrice(ItemStack itemStack);

	/**
	 * Set the price of an ItemStack
	 *
	 * @param itemStack - ItemStack to set price for
	 * @param price     - Price to set on item
	 */
	void setPrice(ItemStack itemStack, double price);
}