Interface PlayerShopService
public interface PlayerShopService
Chest+sign player shops: create one, trade against it, remove it. Every lookup here is
synchronous and backed by an in-memory cache (there is no async "does a shop exist here" check a
block-interact/break listener could reasonably wait on), kept in sync with storage on every
mutation.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe shop whose stock chest is at this exact block position, if any.The shop whose sign is at this exact block position, if any.create(UUID owner, Position signLocation, Position chestLocation, org.bukkit.inventory.ItemStack item, @Nullable Double buyPrice, @Nullable Double sellPrice) remove(long shopId) shopsByOwner(UUID owner)
-
Method Details
-
atSign
The shop whose sign is at this exact block position, if any. -
atChest
The shop whose stock chest is at this exact block position, if any. -
shopsByOwner
-
create
CompletableFuture<PlayerShop> create(UUID owner, Position signLocation, Position chestLocation, org.bukkit.inventory.ItemStack item, @Nullable @Nullable Double buyPrice, @Nullable @Nullable Double sellPrice) -
remove
-
buy
-
sell
-