public class Shop extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Shop.ShopType |
Constructor and Description |
---|
Shop(int id,
ShopChest plugin,
org.bukkit.OfflinePlayer vendor,
org.bukkit.inventory.ItemStack product,
org.bukkit.Location location,
double buyPrice,
double sellPrice,
Shop.ShopType shopType) |
Modifier and Type | Method and Description |
---|---|
static Shop |
createImaginaryShop(org.bukkit.OfflinePlayer vendor,
org.bukkit.inventory.ItemStack product,
org.bukkit.Location location,
double buyPrice,
double sellPrice,
Shop.ShopType shopType) |
double |
getBuyPrice() |
IHologram |
getHologram() |
int |
getID() |
org.bukkit.inventory.InventoryHolder |
getInventoryHolder() |
org.bukkit.Location |
getLocation() |
org.bukkit.inventory.ItemStack |
getProduct() |
double |
getSellPrice() |
Shop.ShopType |
getShopType() |
org.bukkit.OfflinePlayer |
getVendor() |
void |
removeHologram()
Creates the hologram of the shop if it doesn't exist
|
void |
removeItem()
Removes the floating item of the shop
|
public Shop(int id, ShopChest plugin, org.bukkit.OfflinePlayer vendor, org.bukkit.inventory.ItemStack product, org.bukkit.Location location, double buyPrice, double sellPrice, Shop.ShopType shopType)
public void removeHologram()
public void removeItem()
public int getID()
public org.bukkit.OfflinePlayer getVendor()
public org.bukkit.inventory.ItemStack getProduct()
public org.bukkit.Location getLocation()
public double getBuyPrice()
public double getSellPrice()
public Shop.ShopType getShopType()
public IHologram getHologram()
public org.bukkit.inventory.InventoryHolder getInventoryHolder()
InventoryHolder
of the shop or null if the shop has no chest.public static Shop createImaginaryShop(org.bukkit.OfflinePlayer vendor, org.bukkit.inventory.ItemStack product, org.bukkit.Location location, double buyPrice, double sellPrice, Shop.ShopType shopType)
Copyright © 2016. All rights reserved.