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) |
Shop(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 |
---|---|
boolean |
create(boolean showConsoleMessages) |
double |
getBuyPrice() |
Hologram |
getHologram() |
int |
getID() |
org.bukkit.inventory.InventoryHolder |
getInventoryHolder() |
ShopItem |
getItem() |
org.bukkit.Location |
getLocation() |
org.bukkit.inventory.ItemStack |
getProduct() |
double |
getSellPrice() |
Shop.ShopType |
getShopType() |
org.bukkit.OfflinePlayer |
getVendor() |
boolean |
hasId() |
boolean |
isCreated() |
void |
removeHologram()
Removes the hologram of the shop
|
void |
removeItem()
Removes the floating item of the shop
|
void |
setId(int id)
Assign an ID to the shop.
|
void |
updateHologramText() |
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 Shop(ShopChest plugin, org.bukkit.OfflinePlayer vendor, org.bukkit.inventory.ItemStack product, org.bukkit.Location location, double buyPrice, double sellPrice, Shop.ShopType shopType)
public boolean create(boolean showConsoleMessages)
public void removeHologram()
public void removeItem()
public void updateHologramText()
public boolean hasId()
public void setId(int id)
public boolean isCreated()
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 Hologram getHologram()
public org.bukkit.inventory.InventoryHolder getInventoryHolder()
InventoryHolder
of the shop or null if the shop has no chest.Copyright © 2017. All rights reserved.