add getShopBySignLocation(Location signLocation) to api

This commit is contained in:
Len
2022-07-09 16:34:38 +02:00
parent 226aaa2ba2
commit 2a8897397c
2 changed files with 39 additions and 0 deletions
@@ -19,6 +19,14 @@ public interface ShopHandler { // TODO finish docs
*/
Shop getShop(Location location);
/**
* Get the shop at a given location
*
* @param signLocation Location of the shopSign
* @return Shop at the given location or <b>null</b> if no shop is found there
*/
Shop getShopBySignLocation(Location signLocation);
/**
* Checks whether there is a shop at a given location
* @param location Location to check