# Uses of Class de.epiceric.shopchest.shop.Shop (ShopChest 1.12 API)
Date: 2017-06-08

## Uses of Class
de.epiceric.shopchest.shop.Shop

Packages that use Shop
de.epiceric.shopchest.event
de.epiceric.shopchest.sql
de.epiceric.shopchest.utils

### Uses of Shop in de.epiceric.shopchest.event

Methods in de.epiceric.shopchest.event that return Shop
`Shop` ShopEvent.`getShop()`

Methods in de.epiceric.shopchest.event that return types with arguments of type Shop
`List<Shop>` ShopRemoveAllEvent.`getShops()`

Constructors in de.epiceric.shopchest.event with parameters of type Shop
Constructor and Description
`ShopBuySellEvent(org.bukkit.entity.Player player, Shop shop, ShopBuySellEvent.Type type, int newAmount, double newPrice)`
`ShopCreateEvent(org.bukkit.entity.Player player, Shop shop, double creationPrice)`
`ShopEvent(org.bukkit.entity.Player player, Shop shop)`
`ShopInfoEvent(org.bukkit.entity.Player player, Shop shop)`
`ShopOpenEvent(org.bukkit.entity.Player player, Shop shop)`
`ShopPreCreateEvent(org.bukkit.entity.Player player, Shop shop)`
`ShopRemoveEvent(org.bukkit.entity.Player player, Shop shop)`

Constructor parameters in de.epiceric.shopchest.event with type arguments of type Shop
Constructor and Description
`ShopRemoveAllEvent(org.bukkit.command.CommandSender sender, org.bukkit.OfflinePlayer vendor, List<Shop> shops)`

### Uses of Shop in de.epiceric.shopchest.sql

Methods in de.epiceric.shopchest.sql with parameters of type Shop
`void` Database.`addShop(Shop shop, Callback callback)` Adds a shop to the database
`void` Database.`removeShop(Shop shop, Callback callback)` Remove a shop from the database

### Uses of Shop in de.epiceric.shopchest.utils

Methods in de.epiceric.shopchest.utils that return Shop
`Shop` ShopUtils.`getShop(org.bukkit.Location location)` Get the shop at a given location
`Shop[]` ShopUtils.`getShops()` Get all Shops

Methods in de.epiceric.shopchest.utils with parameters of type Shop
`void` ShopUtils.`addShop(Shop shop, boolean addToDatabase)` Add a shop
`void` ShopUtils.`addShop(Shop shop, boolean addToDatabase, Callback callback)` Add a shop
`void` ShopUtils.`removeShop(Shop shop, boolean removeFromDatabase)` Remove a shop
`void` ShopUtils.`removeShop(Shop shop, boolean removeFromDatabase, Callback callback)` Remove a shop
`void` ShopUtils.`updateShop(Shop shop, org.bukkit.entity.Player player)` Update hologram and item of the shop for a player based on their distance to each other